msiexec wait for completion powershell

C++
Start-Process msiexec.exe -Wait -ArgumentList '/I C:\installers\SQLIO.msi /quiet'

Source

Also in C++: