Is there any recommended coding style how to write PowerShell scripts?
It\'s not about how to structure the code (how many functions, if to use modu
I believe the most comprehensive coding style resource for PowerShell still is The PowerShell Best Practices and Style Guide.
From their introduction:
Like English spelling and grammar rules, PowerShell programming best practices and style rules nearly always have exceptions, but we are documenting a baseline for code structure, command design, programming, formatting, and even style which will help you to avoid common problems, and help you write more reusable, readable code -- because reusable code doesn't have to be rewritten, and readable code can be maintained.
They also made these GitBook links available: