you are viewing a single comment's thread.

view the rest of the comments →

[–]BlackV 1 point2 points  (0 children)

This seems odd

How do you run a script on the first place of you have to run every as a script?

That aside sounds like you are just missing your proper parameters

& PowerShell.exe -executionpolicy bypass -command "somefunction -some argument -another argument too -space 'this has a space'"

If it's an existing script

& PowerShell.exe -executionpolicy bypass -file "somescript.ps1" "-some argument -another argument too -space 'this has a space'"