Commands / System

Start-Process

Open a file or start a program

beginner System Aliases startsaps

Start-Process
 Start-Process -FilePath .\notes.txt
Works on
WindowsLinuxmacOS
PowerShell
5.1 and later
Reference
Microsoft Learn: Start-Process

Starts a program in its own window. Point it at a document or a URL and it opens with the default app, like double-clicking.

Common parameters

Try this

Start-Process -FilePath notepad.exe -ArgumentList .\notes.txt
Start-Process -FilePath .\report.pdf
Start-Process -FilePath 'https://learn.microsoft.com/powershell/'
Start-Process -FilePath powershell.exe -Verb RunAs

Coming from another shell

ShellWhat you might type
bash / zshxdg-open notes.txt
cmd.exestart notes.txt

More in From bash and From cmd.

Related commands