run powershell script by clicking code example
Example: run powershell script by clicking
powershell.exe -command "& 'C:\A path with spaces\MyScript.ps1' -MyArguments blah"
powershell.exe -command "& 'C:\A path with spaces\MyScript.ps1' -MyArguments blah"