to get the version
$host.version
[Environment]::Is64BitProcess
Below script will force the shell to 32 bit process
if ($env:Processor_Architecture -ne "x86") { write-warning "Running x86 PowerShell..." &"$env:WINDIR\syswow64\windowspowershell\v1.0\powershell.exe" -NonInteractive -NoProfile $myInvocation.Line exit }