Izvedemo
PS:> winget search Microsoft.Powershell

in namesti z winget install –id Microsoft.Powershell –source winget
V primeru prejšnje verzije izvedi namestitev z MSI skripto
iz naslednjega vira: PowerShell-7.3.2-win.msixbundle.
in potem naredi namestitev z:
winget install –id Microsoft.Powershell –source winget
Links: Installing Powershell 7 and VS code