powershell
Installation
SKILL.md
PowerShell
Use this skill to keep PowerShell work grounded in the installed runtime first, then fall back to official Microsoft Learn content when local help is missing or partial.
Prerequisite Check
Run this before proposing PowerShell commands:
Get-Command pwsh,pwsh.exe,powershell,powershell.exe -ErrorAction SilentlyContinue
If no PowerShell host is available, surface that first and point to scripts/install.sh or scripts/install.ps1. For POSIX-compatible tasks, state clearly when bash or zsh is a better fallback than forcing PowerShell-specific syntax.
Quick Start
- Run
scripts/probe-pwsh.ps1first for environment truth. - Establish the help surface before guessing: