Some apps comes with a 32 & 64-bit installer. I’d be nice if there was a way to detect what CPU architecture the script it running on and install the appropriate version.
Use
If ($Is64BitProcess) {
Execute-Process -Path "Setup64.exe"
}
Else {
Execute-Process -Path "Setup.exe"
}