Native Process Wrapper
When to use
- •Running
cmake,dotnet, or other native tools from PowerShell. - •Native stderr logs are being treated as hard failures.
- •Script reliability differs across shells/hosts.
Protocol
- •Avoid direct
& tool ...when reliability is critical. - •Use
Start-Processwith:- •redirected stdout file
- •redirected stderr file
- •explicit exit code check
- •Print both streams for diagnostics.
- •Fail only on non-zero exit code (unless policy says otherwise).
Minimum wrapper requirements
- •Command name and args logged.
- •Output stream capture.
- •Deterministic exit code handling.
- •Cleanup of temp files.
Repository reference
- •Canonical implementation:
- •
scripts/run-docling-parse-cabi-smoke.ps1
- •
Exit criteria
- •Script behavior is consistent across PowerShell hosts.
- •No false-negative failures from expected stderr logging.