Pcornel
Automation · PowerShell Automation

PowerShell Fundamentals

Cheat sheet · https://pcornel.dk/topic.php?topic=5229

Back to the Topic

Answer

PowerShell fundamentals: cmdlets output objects, the pipeline passes them on, Get-Help and Get-Member explain them, and PowerShell 7 runs cross-platform beside Windows PowerShell 5.1.

Remember

  • Cmdlets output objects; the pipeline passes them on.
  • PowerShell 7 runs on Windows, Linux and macOS.
  • Windows PowerShell 5.1 is still common.

First checks

  • $PSVersionTable.PSVersion — version
  • Get-Help <cmdlet> -Full — documentation
  • Update-Help — local help

Verify in this order

command → objects → pipeline

Where it usually breaks

Script/input → command/module binding → local/remoting session → request accepted → command result → target object read-back → effective runtime state → workload.

PowerShell Fundamentals · PowerShell operational reference

BoundaryPowerShell Fundamentals reference
Runtime identityPowerShell edition/version + command/module source
Persistent intentScript/module/config prerequisites under source control
VerificationRead-only discovery → execution evidence → independent target read-back
Output contractStructured objects/streams before formatting
Failure boundarySeparate engine/binding from transport/API/native and target-state failures

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5229

Confirmation

Confirm action

Continue?