title: Executing a Powershell script in CMD.EXE from a location with "Illegal characters in path"
body: <p>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</p>
  
  <p>When I am calling this script I have tried using single and double quotes around the path with no luck. </p>
  
  <pre><code>PowerShell.exe -File "c:\Data\foo - bar\location-1\ShellScript.ps1" Arg1 Arg2
  </code></pre>
  
  <p>From what I have read I assumed that the above would work but this did not work nor did single quotes. </p>
  
  <p>I appreciate any ideas. </p>
  
  <p>Thanks
  *Edit * Mistype on my example path. Sorry. </p>