pwsh
TLDR
Start PowerShell
$ pwsh
Execute command$ pwsh -Command "[Get-Process]"
Run script$ pwsh -File [script.ps1]
Non-interactive mode$ pwsh -NonInteractive -Command "[command]"
Specific version$ pwsh -Version
SYNOPSIS
pwsh [options] [file]
DESCRIPTION
pwsh is PowerShell Core. Cross-platform shell and scripting.
The tool runs on Linux/macOS/Windows. Microsoft's modern shell.
pwsh runs PowerShell.
PARAMETERS
FILE
Script file to execute.-Command CMD
Execute command.-File FILE
Execute script file.-NonInteractive
No interactive prompt.-NoProfile
Don't load profile.-Version
Show version.
CAVEATS
Requires installation. Different from Windows PowerShell.
HISTORY
PowerShell Core was released by Microsoft as cross-platform shell.


