if([IntPtr]::Size -eq 4) {'32-bit'} else {'64-bite'} ## v7版本中可以使用三元运算符 [IntPtr]::Size -eq 8 ? '64-bit': '32-bite'