get-host
PS C:\> (get-host).version Major Minor Build Revision ----- ----- ----- -------- 5 1 17763 134
$psVersionTable
Index