Führen Sie das PowerShell -Skript aus, indem Sie klicken
powershell.exe -command "& 'C:\A path with spaces\MyScript.ps1' -MyArguments blah"
Frantic Flamingo
powershell.exe -command "& 'C:\A path with spaces\MyScript.ps1' -MyArguments blah"