Question

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

  • 4 November 2022
  • 4 replies
  • 1365 views

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

4 replies

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

Userlevel 5
Badge +9

@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

Badge +1

Pass the file path in double quotes

Badge

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

Reply