Skip to main content

In this article

Coding Standards/Powershell/Powershell

Coding Standards/Powershell/Powershell
FieldValue
Kindinstruction
Source.github/instructions/coding-standards/powershell/powershell.instructions.md
InvocationApplied automatically to **/*.ps1, **/*.psm1, **/*.psd1
InteractiveNo

What it does​

PowerShell scripting conventions

When to use it​

Apply these conventions when creating or modifying PowerShell scripts, modules, or data files. They govern structure, help, parameter validation, error handling, and repository logging; .Tests.ps1 files additionally use the Pester-specific instructions.

Example usage​

Provide a concrete example that shows the asset in action, including representative input and the resulting output.