CmdID

CmdID / Commands

start-process

Start a command in a new console. tldr-pages

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from tldr-pages, CC BY 4.0

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\directoryIdentify

Start a specific Windows program file (command-line programs will open on a new console window)

Start-Process path\to\fileIdentify

Start a registered Windows program name and pass its command arguments

Start-Process msedge --inprivate example.comIdentify

Start a Windows program in minimized or maximized window mode

Start-Process -WindowStyle Minimized programIdentify

Start a command or Windows program with a specified working directory

Start-Process -WorkingDirectory path\to\directory command_or_programIdentify

Do not finish this command until the target command or program exits

Start-Process -Wait command_or_programIdentify