Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install executable with command line switches
Function Install-EXE
$processID = (Invoke-WmiMethod -class Win32_process -name Create -ArgumentList $Command -ErrorAction Stop).processid
Wait-Process -Id $processID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.