PSADT tells me executable is not valid for OS platform but cmd install works.

In my Deploy-Application.ps1 file I have this line of code

Execute-Process -Path "HedgehogClient.msi" -Parameters "/q /norestart /l*V C:\Apps\HHinstall_log.log"

which throws the error: : Exception calling “Start” with “0” argument(s): “The specified executable is not a valid application for this OS platform.”

However, if I open a command prompt window and run HedgehogClient.msi /q /norestart /l*V C:\Apps\HHinstall_log.log

The application installs. When I check HHinstall_log I get “Installation success or error status: 0.”

Any ideas what I’m doing incorrectly here?

Nevermind, I’m an idiot and did not RTFM.

Execute-MSI -Action Install -Path 'HedgehogClient.msi' -Parameters "/q /norestart /l*V C:\Apps\HHinstall_log.log"

works just fine…