Це стара версія документу!
By default Windows 10 and 11 comes with PS 5.1. You can get more modern PowerShell with winget:
winget install --id Microsoft.Powershell --source winget
that's all.
You can check which versions are available with
winget search Microsoft.PowerShell
New PowerShell will be installed additionally to existing PS. In Terminal after restart you will find new profile: