title: How do I get the ErrorLevel from a process started via PowerShell Start-Process called from CMD?
body: <p>I'd like to be able to get the ErrorLevel of Process.exe from this example command:</p>
  <pre><code>C:\&gt;PowerShell -NoP -C &quot;Start-Process &quot;C:\Process.exe&quot;&quot;
  </code></pre>
  <p>If Process.exe exits with an ErrorLevel of 5, I'd like to be able to capture that via CMD, ideally in the %ErrorLevel% variable. I'm not proficient enough in PowerShell to do this.</p>