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
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

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Invoke-Process

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • Adam Bertram

Tags

Processes

Functions

Invoke-Process

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
1.4 (current version) 4,674 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