$PSVersionTable.PSVersion
参考资料
================
http://stackoverflow.com/questions/1825585/determine-installed-powershell-version
http://blogs.technet.com/b/heyscriptingguy/archive/2014/10/13/powertip-check-version-of-powershell.aspx