What problem does it solve? PowerShell scripts frequently fail due to subtle syntax issues like missing parentheses around cmdlets in logical expressions, Unicode characters breaking parsers, and null reference errors. This Skill provides a reference of critical patterns and pitfalls so AI agents and developers write correct Windows PowerShell code the first time. ## Core Features & Use Cases - Operator Syntax Rules: Enforces parentheses around cmdlet calls in logical expressions to avoid "parameter 'or'" parser errors. - ASCII-Only Enforcement: Maps emoji and Unicode symbols to safe ASCII markers like [OK], [!], and [WARN] to prevent "Unexpected token" errors. - Null Checks and JSON Handling: Provides patterns for null-safe property access and mandates ConvertTo-Json -Depth for nested objects. - Use Case: When an AI agent generates a Windows automation script, it applies these rules to produce a script template with strict mode, try/catch error handling, and Join-Path file paths that runs without syntax failures. ## Quick Start Ask the agent to write a PowerShell script for your Windows task following the powershell-windows patterns, such as a script that reads a JSON config file and processes a list of files with proper error handling.