Jak zaktualizować wersję PowerShell
#Using the WinGet package manager
winget install --id=Microsoft.PowerShell -e
Thomas
#Using the WinGet package manager
winget install --id=Microsoft.PowerShell -e
Invoke-Expression "& { $(Invoke-Restmethod https://aka.ms/Install-PowerShell.ps1) } -UseMSI"