Skip to content

Instantly share code, notes, and snippets.

@desaster
Created February 3, 2017 11:31
Show Gist options
  • Save desaster/458dd5097de43b21b3418eba4b594e3f to your computer and use it in GitHub Desktop.
Save desaster/458dd5097de43b21b3418eba4b594e3f to your computer and use it in GitHub Desktop.
$app = Start-Process -PassThru -FilePath C:\windows\system32\notepad.exe
Write-Host "Hello World!"
Write-Host "Process PID seems to be" $app.Id
Wait-Process -Id $app.Id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment