# PSScriptAnalyzer: A Second Pair of Eyes

Invoke-ScriptAnalyzer reads a script or a whole module without running it and lists every likely problem with its rule, severity, line and message; the rules worth knowing ask for full command names, approved verbs, singular nouns, -WhatIf on commands that change things, results instead of Write-Host and no unused variables, and a settings file or SuppressMessageAttribute sets one aside on purpose.

![Cheat sheet for the lesson PSScriptAnalyzer: A Second Pair of Eyes: Invoke-ScriptAnalyzer reads a script or a whole module without running it and lists every likely problem with its rule, severity, line and message; the rules worth knowing ask for full command names, approved verbs, singular…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/f586115299ca46be8b75d0b9d1a858b2.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: approved-verb, invoke-scriptanalyzer, Linter, powershell, psscriptanalyzer, suppressmessageattribute
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-script-analyzer-cheat-sheet
