pwsh

PowerShell Core is a cross-platform automation and configuration tool/framework.

TLDR

Start an instance of PowerShell

$ pwsh
copy

Execute a script and then exit

$ pwsh -File [path/to/file.ps1]
copy

Set the execution policy for the current session

$ pwsh -ExecutionPolicy [AllSigned|Bypass|Default|RemoteSigned|Restricted|Undefined|Unrestricted]
copy

Execute a command and then exit

$ pwsh -Command [command]
copy

Copied to clipboard
Binance