Command
Invoke-ValidationCommand
Runs a bounded validation process and returns its captured output.
Syntax
Invoke-ValidationCommand
-Command <ReleaseCommandValidation>
[-ProjectRoot <String>]
[-Variables <Hashtable>]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Use this for product-specific probes that must inspect structured process output. PowerForge owns timeout, cancellation, argument quoting, and expected-exit checks.
Examples
Read product diagnostics as JSON
$result = Invoke-ValidationCommand -Command @{ FileName = './tool.exe'; Arguments = @('diagnostics', '--json'); OutputJsonKind = 'Object' }; $result.StdOut | ConvertFrom-JsonParameters
- -Command ReleaseCommandValidation
- Executable, arguments, timeout, environment, and output expectations.
- -ProjectRoot String
- Root for relative paths. Defaults to the current PowerShell filesystem location.
- -Variables Hashtable
- Named substitutions for command arguments, environment, and paths.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.