title: How to ignore pause - press any key - in Powershell while executing file
body: <p>Using Powershell I am starting some executable using <code>invoke-expression</code> like:</p>
  
  <pre><code>Invoke-Expression "c:\exec.exe"
  </code></pre>
  
  <p>now my problem is this exec is showing something like "pause and press any key to continue".</p>
  
  <p>I tried:</p>
  
  <pre><code>Function Run-Tool
  {
      Invoke-Expression "c:\exec.exe"
      $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
  }
  </code></pre>
  
  <p>But no luck.</p>
  
  <p>My question is can I ignore that message some sort of suppression or is there a way to monitor output and simulate pressing any key?</p>