start-process
Start a command in a new console. tldr-pages
On Windows
Windows
Start a command in a new console. Can also be used to run Windows programs registered in the App Paths Windows Registry despite not registered in the $Env:PATH environment variable.
Open a specific directory on Windows Explorer (equivalent to explorer path\to\directory)
Start-Process path\to\directoryIdentifyStart a specific Windows program file (command-line programs will open on a new console window)
Start-Process path\to\fileIdentifyStart a registered Windows program name and pass its command arguments
Start-Process msedge --inprivate example.comIdentifyStart a Windows program in minimized or maximized window mode
Start-Process -WindowStyle Minimized programIdentifyStart a command or Windows program with a specified working directory
Start-Process -WorkingDirectory path\to\directory command_or_programIdentifyDo not finish this command until the target command or program exits
Start-Process -Wait command_or_programIdentify