title: Running applications within PowerShell window
body: <p>I'm trying to move away from Command Prompt, because it's a dead-end, over to PowerShell (ISE). I haven't figured out how to run command-line applications within the PowerShell (ISE) window. Everytime I use Start-Process a Command Prompt window appears (and disappears). I've seen some people suggest -Wait and -NoNewWindow but those haven't worked for me so far.</p>
  
  <pre><code>Start-Process MyApplication.exe
  </code></pre>
  
  <p>This starts Command Prompt, runs the application and disappears. PowerShell remains responsive.</p>
  
  <pre><code>Start-Process MyApplication.exe -Wait
  </code></pre>
  
  <p>This starts Command Prompt, runs the application and disappears. PowerShell doesn't get responsive until Command Prompt has exited.</p>
  
  <pre><code>Start-Process MyApplication.exe -Wait -NoNewWindow
  </code></pre>
  
  <p>This results in the following:</p>
  
  <p>Start-Process : This command cannot be run due to the error: The system can not find the file specified.</p>