PowerShell Example (tick_24Pro, cross_24Std, cross_24Lite)

This PowerShell script example processes a Batch Wizard target list (with the -b command) with the GUI suppressed (with the -minimize option). When the job is completed, the Batch Wizard exits (with the -q command).

start-process <filepath>\cmdlineprocessor.exe -ArgumentList "-b <filepath>\<projectName>.lst -minimize" -RedirectStandardOutput "<filepath>\<projectName>-StdOut.txt" -RedirectStandardError "<filepath>\<projectName>-StdErr.txt"
start-process <filepath>\cmdlineprocessor.exe -ArgumentList "-q" -RedirectStandardError "<filepath>\<projectName>_Quit-StdErr.txt"

Notes & Tips:

In normal operation, the redirected output of stdout and stderr is invisible and irrelevant.

The TNPL custom user functions (which can be used to generate a CSV file of all validation errors) and the XML output capability of the Batch Wizard allow some powerful possibilities.

You may want to do an 'Errors only' or 'Errors and warnings only' validation to limit the validator messages to the more important ones. See the Tool to Use Options Page.

You may want to disable some messages like the random advice messages, but this is completely optional.

If you will be comparing results from different runs, such as with a diff tool, then you may want to set $_JOB.startdate and $_JOB.starttime to a constant value.

If you are generating one report per target/URL, then you may want to rename the report page to be based on the URL so that the report for the page is always saved using the same filename. See onGetReportFilename() for more information.