So I\'ve tried a bunch of different ways to run a powershell script from the command line and every single one returns an error.
Here is this path:
In case you use parameters you can do as follow
powershell.exe -command "& {&'C:\A B C\foo.ps1' param1 param2}"
Thanks at this point to Hesham A. Amin :-)