I tried using this as the command line:
"c:\VERTEX\decrypt - test.ps1" -accepteula
The job just opened notepad and then hung.
This typically works for us:powershell.exe -f <full path of script>.ps1 -<parameters>You may also need to adjust your agentparm.txt file regarding quotations for syntax.
Thank you so much. I have it working now!
If you want to run a plain Powershell command and not a script you can use the following command in autosys:
powershell -c "<command>"
Tried executing the same : powershell.exe -f <full path of script>.ps1 -<parameters> , it dint work.
this is what I got to work in our shop
powershell.exe -NonInteractive -command "& '<full path of script>..ps1' 'parameter'"
Retrieving data ...