Installing PowerShell on Windows

Check Your PowerShell Version

  1. Launch PowerShell by opening the Start menu and typing powershell.
  2. In the list of search results, click Windows PowerShell or PowerShell v7.
  3. In the PowerShell window, type $PSVersionTable.PSVersion and press ENTER to get the exact version of PowerShell.

Download latest version from here and install

References
https://petri.com/how-to-check-your-powershell-version/
https://aka.ms/PSWindows