title: Is it possible to let PowerShell interact with a console application?
body: <p>Let say you have any console application that is easily to start, later when the console has been running for a while maybe it outputs something in the console window and wait for user interaction. Is it possible to let PowerShell answer to this output?</p>
  
  <p>So this is what I want to do in PowerShell:</p>
  
  <ol>
  <li>Start MyApp.exe</li>
  <li>Wait for some output</li>
  <li>Depending on the output provide input to MyApp.exe</li>
  </ol>