Native parser
PowerShell parser findings identify syntax errors and source locations.
POWERSHELL 7.4+ SCRIPT REVIEW
PSRafScan reviews AI-generated and manually written PowerShell scripts for parser errors and defined static findings, including unsafe operations, hidden failures, and terminal-paste traps.
Cross-platform on Windows, macOS, and Linux · MIT licensed · No external PowerShell module dependencies
PSRafScan v0.2.0-alpha1 · Runs on PowerShell 7.4 or later
ANALYSIS MODEL
Catch syntax errors, find risky or fragile patterns, and get clear guidance for the next revision.
PowerShell parser findings identify syntax errors and source locations.
PSRafScan-owned rules inspect defined safety, correctness, portability, and context patterns.
PlainText or JSON results explain what was found, why it matters, and how to improve the script.
INTENDED USE
A PowerShell script that works well as a saved file can fail when pasted into a live terminal. PSRafScan applies the right checks based on intended use.
For source intended to remain a saved .ps1 file.
For source intended to be entered directly in a live PowerShell terminal.
REPRESENTATIVE FINDINGS
These examples show how PSRafScan calls attention to hidden errors, destructive file operations, and document markup mixed into executable code.
Calls attention to -ErrorAction SilentlyContinue when a failure may be hidden.
Calls attention to Remove-Item with both -Recurse and -Force when -WhatIf is absent.
Finds raw Markdown fence lines that do not belong in executable PowerShell.
GUIDED OR DIRECT
Run RSX alone for the guided terminal workflow, or provide an existing path and explicit review settings in one command.
RSXChoose input, intended use, threshold, report format, and destination through the current guided sequence.
Follow the guided workflow →RSX -Path ./script.ps1 -IntendedUse Ps1File -FailOn WarningSupply the file, intended use, threshold, and report settings directly for a repeatable review.
Run a scan →Keep the original response, make focused changes, and compare the revision before testing it in an appropriate environment.
Review AI-generated PowerShell →START ACCURATELY
Use the documentation for installation, commands, reports, rules, and practical review workflows.