title: PowerShell - Start-Process and Cmdline Switches
body: <p>I can run this fine:</p>
  
  <pre><code>$msbuild = "C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe" 
  start-process $msbuild -wait
  </code></pre>
  
  <p>But when I run this code (below) I get an error:</p>
  
  <pre><code>$msbuild = "C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe /v:q /nologo" 
  start-process $msbuild -wait
  </code></pre>
  
  <p>Is there a way I can pass parameters to MSBuild using start-process? I'm open to not using start-process, the only reason I used it was I needed to have the "command" as a variable.</p>
  
  <p>When I have<br>
  C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe /v:q /nologo<br>
  on a line by itself, how does that get handled in Powershell?  </p>
  
  <p>Should I be using some kind of eval() kind of function instead? </p>