if ([System.IntPtr]::Size -eq 4) { Write-Host "32-bit Architecture (x86)" } else { Write-Host "64-bit Architecture" }