title: Start-Process fails with msbuild with write-error in powershell
body: <p>I try do something very simple like this but it fails with exception:</p>
  
  <pre><code>Build-VisualStudioSolution &lt;&lt;&lt;&lt;   
      + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Build-VisualStudioSolution
  </code></pre>
  
  <p>simple script is  like that.
  When I run the same from command line it is fine.</p>
  
  <pre><code>@buildArgs = "C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe C:\WORK\test\test.sln /t:build"
  
  try{
  Start-Process @BuildArgs 
  
  }
  catch{            
  Write-Error ($_.Message);            
  }    
  </code></pre>
  
  <p>thanks for tips</p>