Hi THEOBALD K,
Microsoft does not maintain a traditional, static manifesto for PowerShell formatting in the way legacy languages do. Instead, the product group codified its formatting standards, security baselines, and best practices directly into an official linting module known as PSScriptAnalyzer. By installing this tool and enforcing its default rule set, your team is effectively applying Microsoft's canonical style guide, immediately eliminating the subjective nature of arbitrary formatting preferences.
The most practical method to establish this standard across your organization is to integrate PSScriptAnalyzer directly into your daily development workflows. You can customize these enforcement rules by modifying the editor configuration file located at %APPDATA%\Code\User\settings.json on Windows environments, allowing you to define your workspace baseline and toggle specific analyzer rules like PSUseDeclaredVarsMoreThanAssignments.
For teams engineering complex or compiled modules, pairing the automated syntax checks of PSScriptAnalyzer with the architectural rules outlined in Microsoft's Cmdlet Development Guidelines provides a complete, authoritative framework. Enforcing this module centrally within your continuous integration pipelines ensures that all repository commits automatically adhere to the official standard before they ever reach production infrastructure.
Hope this answer brought you some useful information. If it did, please hit “accept answer”. Should you have any questions, feel free to leave a comment.
VPHAN