Is allowed to use a js function in Powershell? #580
Unanswered
elenaromeo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Sorry but jsrsasign doesn't support use in PowerShell. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a Postman collection that use that library and I need to convert this line code to Powershell:
Is that allowed?
I tried in Powershell with:
$jsrsasignjs = Get-JsrsasignJs
$sc = New-Object -ComObject ScriptControl;
$sc.Language = "JavaScript";
$sc.AddCode($jsrsasignjs );
but I get an error on the "$sc.AddCode($string)" ( "Expected identifier, string or number") even if the input is correct.
Is there another way to use it on Powershell?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions