title: Capturing standard out and error with Start-Process
body: <p>Is there a bug in PowerShell's <code>Start-Process</code> command when accessing the <code>StandardError</code> and <code>StandardOutput</code> properties?</p>
  
  <p>If I run the following I get no output:</p>
  
  <pre><code>$process = Start-Process -FilePath ping -ArgumentList localhost -NoNewWindow -PassThru -Wait
  $process.StandardOutput
  $process.StandardError
  </code></pre>
  
  <p>But if I redirect the output to a file I get the expected result:</p>
  
  <pre><code>$process = Start-Process -FilePath ping -ArgumentList localhost -NoNewWindow -PassThru -Wait -RedirectStandardOutput stdout.txt -RedirectStandardError stderr.txt
  </code></pre>