New-PesterTests generates a ready-to-run Pester test file for a function or script. This is the product's core action. Point it at a .ps1 file and you get a test file back.
New-PesterTests -ScriptPath .\Public\Get-Something.ps1
Get-PesterCoverage scans a module or folder and reports which functions have tests and where the coverage gaps are. Run it on an existing module first, before you generate anything, so you know how much testing work you are actually looking at.
Get-PesterCoverage -ModuleRoot .
Measure-FunctionTestability inspects a function and reports its parameters, outputs, error types, and how testable it is. New-PesterTests uses the same analysis when it generates, and a low-scoring function gets an informational banner in its generated test file.
Measure-FunctionTestability -ScriptPath .\Public\Get-Something.ps1
New-TestProject creates a standard test-project folder layout.
New-TestProject -ProjectRoot .
New-PfTestFile creates a starter test file in the right place with the right name. By default that is Tests\Unit\<FunctionName>.Tests.ps1 under your project root. Profile the function first, then hand the profile in:
$profile = Measure-FunctionTestability -ScriptPath .\Public\Get-Something.ps1 New-PfTestFile -FunctionProfile $profile
Start-TestRun runs your tests with PesterForge's recommended settings. Pick a category (Static, Unit, Integration, Acceptance, or All) and you get a pass/fail/skip summary back.
Start-TestRun -ProjectRoot . -Category Unit
Start-TestRun and New-TestProject ship as tool scripts alongside the module. The other three commands load with Import-Module PesterForge.
The PowerShell module is free. That covers all five commands on this page.
PesterForge also runs as an MCP server, so an AI agent can call it. On the server, four tools are free and two require a paid plan:
| Surface | Tools | Cost |
|---|---|---|
| PowerShell module | All five commands above | Free |
| MCP server | profile_function, audit_coverage, get_version, run_tests | Free |
| MCP server | create_test_file, scaffold_project | Paid plan |
Server details and plans are on the PesterForge MCP page. To try the module end to end, read the quick start.