title: How to get the process id of Explorer launched from Powershell
body: <p>I started "Explorer.exe" from Powershell and want to get the process id of the explorer window so that I would not mis-operate on other explorer windows.</p>
  
  <p>Code: Start-Process "Explorer.exe" -PassThru
  Result: I can see the process id but it's different with the real process id of the window in UISpy or in task manager. Seems explorer.exe start another process (B) can exit itself and finally we see the process (B). And the process I got is the exited process. 
  Question: How can I get the real process id (B)? </p>