title: Running cmd /c from PowerShell with spaces in filepath
body: <p>I am trying to run the following command in PowerShell</p>
  
  <pre><code>PS C:\Users\Administrator&gt; cmd /c "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\vsdevcmd.bat &amp;&amp; nuget restore &amp;&amp; msbuild mywebapp.sln /p:DeployOnBuild=true /p:PublishedProfile=ServerFolderProfile"
  </code></pre>
  
  <p>This produces the error</p>
  
  <pre><code>'C:\Program' is not recognized as an internal or external command. 
  </code></pre>
  
  <p>My paths have spaces and I'm running several commands seperated by &amp;&amp; which is messing everything up. I have tried putting quotes all over the place but I can't get it to work.</p>
  
  <p>If i run just the first part of the command</p>
  
  <pre><code>cmd /c "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\vsdevcmd.bat"
  </code></pre>
  
  <p>it works fine. But I can't get the other commands to work too.</p>