🔤PowerShell
Also known as Windows PowerShell, PowerShell Script, pwsh, .ps1 File
A shell and script language that passes data with named parts, not plain text.
Think of it like
Most shells hand you loose notes. This one hands you boxes with tags on them.
Example
Microsoft makes PowerShell. An admin uses one line of it to list the three programs using the most CPU. Each result has named parts, like Name and CPU.
Why it matters
Most Windows and Azure admin work is done in it. Objects make long chains of commands safer.
Definition
Example code
powershell
Get-Process | Sort-Object CPU -Descending | Select-Object -First 3Common mistake
Key takeaways
- 1Objects, not text. Results have named parts.
- 2Verb-Noun names. Like Get-Process.
- 3Runs everywhere. Windows, Linux and macOS.