Invoke-Process
1.4
Invoke-Process is a simple wrapper function that aims to "PowerShellyify" launching typical external processes. There
are lots of ways to invoke processes in PowerShell with Start-Process, Invoke-Expression, & and others but none account
well for the various streams and exit codes that an external process returns. Also, it's hard to write good tests
when launching ext
are lots of ways to invoke processes in PowerShell with Start-Process, Invoke-Expression, & and others but none account
well for the various streams and exit codes that an external process returns. Also, it's hard to write good tests
when launching ext
Invoke-Process is a simple wrapper function that aims to "PowerShellyify" launching typical external processes. There
are lots of ways to invoke processes in PowerShell with Start-Process, Invoke-Expression, & and others but none account
well for the various streams and exit codes that an external process returns. Also, it's hard to write good tests
when launching external proceses.
This function ensures any errors are sent to the error stream, standard output is sent via the Output stream and any
time the process returns an exit code other than 0, treat it as an error.
Show more
are lots of ways to invoke processes in PowerShell with Start-Process, Invoke-Expression, & and others but none account
well for the various streams and exit codes that an external process returns. Also, it's hard to write good tests
when launching external proceses.
This function ensures any errors are sent to the error stream, standard output is sent via the Output stream and any
time the process returns an exit code other than 0, treat it as an error.
Installation Options
Owners
Package Details
Author(s)
- Adam Bertram
Tags
Functions
Dependencies
This script has no dependencies.
FileList
- Invoke-Process.nuspec
- Invoke-Process.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.4 (current version) | 4,779 | 10/19/2017 |
1.3 | 40 | 10/19/2017 |
1.2 | 19 | 10/19/2017 |
1.1 | 18 | 10/19/2017 |
1.0 | 20 | 10/19/2017 |