PowerShell

Cross-platform PowerShell for automation and scripting

Quick summary

PowerShell Core is the cross-platform version of PowerShell -- an automation and scripting framework that runs alongside bash and fish on Linux. It brings powerful .NET-based scripting to any platform.

Common tasks

Basic Usage

pwsh

Basic Usage

pwsh -c "Get-Process | Where-Object CPU -gt 10"

What is it?

PowerShell Core is the cross-platform version of PowerShell -- an automation and scripting framework that runs alongside bash and fish on Linux. It brings powerful .NET-based scripting to any platform.

Basic Usage

Start PowerShell:

$pwsh

Run a command:

$pwsh -c "Get-Process | Where-Object CPU -gt 10"

List processes: PS> Get-Process

List files: PS> Get-ChildItem

Output text: PS> Write-Host "Hello from PowerShell"

Tips

PowerShell cmdlets follow a Verb-Noun naming convention.
Run Get-Command to list all available cmdlets.
PowerShell uses .NET under the hood -- you can call any .NET class directly.