powershell-windows
Installation
SKILL.md
PowerShell Windows — Scripting Rules
Core Principles
1. Command Separation
- Windows PowerShell 5.1 does not support
&&; PowerShell 7 does. - For independent commands use
;:Set-Location "path"; Get-ChildItem. - For dependent native commands preserve short-circuit semantics explicitly:
git add . if ($LASTEXITCODE -eq 0) { git commit -m "message" }
2. Path Quoting
- Always use double quotes for paths with spaces:
cd "D:\My Projects\MyApp"