$PSVersionTable.PSVersion
Major Minor Build Revision ----- ----- ----- -------- 7 4 6 ... how to update power shell
If you already have it installed, winget will prompt you to . Type Y and press Enter. $PSVersionTable