Starting Programs: `Start-Process`

Start-Process opens a file or folder in the app a double-click would use, starts a program with arguments in its own window or none, hands back its process with -PassThru, waits for it with -Wait or Wait-Process so you can read its ExitCode, and asks Windows for administrator rights with -Verb RunAs.

Updated

Cheat sheet for the lesson Starting Programs: `Start-Process`: Start-Process opens a file or folder in the app a double-click would use, starts a program with arguments in its own window or none, hands back its process with -PassThru, waits for it with -Wait or Wait-Process so you can read its…
Category
PowerShell
Level
Journeyman
Tags
administrator, exit-code, operating-system, powershell, start-process, user-account-control