Reputation: 73
The script to run is this.
string script = "powershell -executionpolicy unrestricted C:\Program Files (x86)\TEST\test.ps1"
But the error says (x86) is not ~
How to I solve this problem?
Upvotes: 0
Views: 53
Reputation: 2434
Solution was:
string script = "powershell -executionpolicy unrestricted -file 'C:\Program Files (x86)\TEST\test.ps1'"
Upvotes: 3