How To Update Power Shell -
Using (recommended):
If you already have PowerShell 7 installed, you can update it directly from the command line. If you are running the older Windows PowerShell (v5.1), this command will install the new version for you. how to update power shell
