PowerShell – get process ID of called application May 26, 2023 by Tarik Use Start-Process with the -PassThru argument like this: $app = Start-Process notepad -passthru Wait-Process $app.Id