Design a clean, parameterized PowerShell script or function with proper error handling, pipeline support, and verbose output for Windows automation.
## CONTEXT PowerShell in 2026 is cross-platform (PowerShell 7+) and the default automation language for Windows fleets, Azure, and many CI runners. Well-written PowerShell uses advanced functions with CmdletBinding, proper parameter validation, the object pipeline rather than text parsing, and structured error…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro