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
  • 2 replies
  • 105 views

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

2 replies

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

Userlevel 4
Badge +7

@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

Reply