title: PowerShell - get process ID of called application
body: <p>I need to call an external application (i.e. &amp; 'Notepad' )
  and then get the process ID of the called application.</p>
  
  <p>Get-Process Notepad  = will return all Notepad processes</p>
  
  <p>I want to do something like:</p>
  
  <pre><code>$objApp = &amp; 'c:\Notepad.exe'
  
  WHILE (get-process -ID $objApp.id | select -property Responding) {
    Start-Sleep -s 10
    Echo "STILL WAITING"
  }
  Echo "Done!!"
  </code></pre>