Skip to main content
How to run powershell script in A360 where file path has space ? eg: C:\Program Files\My PwScript\test.ps1 Thanks, Chandrasekar.

"C:\Program Files\My PwScript\test.ps1"


@Chandrasekar Babu​ 

You can use a bat file with the following :

 

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File  "C:\Program Files\My PwScript\test.ps1"

 

and then run the bat file with Open/Program action.

 

Regards


Pass the file path in double quotes


Test comment: You can rename the folder name to have an underscore instead of space 


Reply