I am attempting to call a Powershell script in cmd.exe and the script is in a location that looks like this: c:Data\foo - bar\location-1\ShellScript.ps1
When I am calling this script I have tried using single and double quotes around the path with no luck.
PowerShell.exe -File "c:\Data\foo - bar\location-1\ShellScript.ps1" Arg1 Arg2
From what I have read I assumed that the above would work but this did not work nor did single quotes.
I appreciate any ideas.
Thanks *Edit * Mistype on my example path. Sorry.