Sending command to Powershell

Hello,

I am trying to send the following command, which I already tested in Powershell, but it keeps complaining about -file path. Could you please guide me on the correct way to execute this command on “Invoke Power Shell” activity:
"powershell.exe -windowstyle hidden -noprofile -executionpolicy bypass -file “C:\Users\XXXXX\Documents\Evaluate_1.2401.2\Evaluate.ps1”

I already tried this and it did not work:
“powershell.exe -windowstyle hidden -noprofile -executionpolicy bypass -file “”“C:\Users\XXXXX\Documents\Evaluate_1.2401.2\Evaluate.ps1”“””

thank you

@m.soto

Ideally it should have been

"powershell.exe -windowstyle hidden -noprofile -executionpolicy bypass -file ""C:\Users\XXXXX\Documents\Evaluate_1.2401.2\Evaluate.ps1"""

Cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.