powershell-windows

Installation
SKILL.md

PowerShell — Windows Automation Mastery


Mandatory Pre-Flight Context Inspection

Before writing PowerShell .ps1 scripts or Windows automation commands, you MUST inspect:

  1. Object Pipeline vs String Parsing Rule (Section 23) → Operate directly on .NET object properties (Get-Process | Stop-Process); ban string splitting/parsing
  2. Mandatory Script Strict Mode Header (Section 43) → Always declare $ErrorActionPreference = "Stop" and Set-StrictMode -Version Latest at top of automation scripts
  3. Process-Scoped Execution Policy Bypass (Section 68) → Use process-level policy override (powershell.exe -ExecutionPolicy Bypass -File ...); ban system-wide Set-ExecutionPolicy Unrestricted

Activation Boundaries

  • Activate when: Operating in tasks requiring PowerShell and Windows environment mastery. Object-oriented piping, strict error handling (ErrorActionPreference), PSProviders, active directory querying, credential management, and execution policies. Use when automating Azure, Windows environments, or writing .ps1 scripts..
  • DO NOT activate when: The task falls strictly outside powershell-windows domain or belongs to a different dedicated specialist.

Installs
3
GitHub Stars
7
First Seen
Apr 26, 2026