Script Snippets: Run 64-Bit PowerShell as Intune Win32 App Install Script
Because the "Microsoft Intune Management Extension" runs as a 32-bit executable, by default on a 64-bit machine it launches the 32-bit PowerShell executable. This can cause some undesired effects when your packaged Win32 app relies on a PowerShell script for installation.