Overview of PowerShell Best Practices and Style Guide
masterThe PowerShell Best Practices and Style Guide provides a baseline for code structure, command design, programming, formatting, and style. The goal is to help developers write more reusable and readable code by following patterns that make it harder to encounter common problems (the "Pit of Success").
Note that these are guidelines and practices, not dogmatic rules. They are intended to be pragmatic; if following a guideline prevents you from accomplishing a task, the guideline should be adapted to your needs.