Quelle: learn.microsoft.com
winget search Microsoft.PowerShell
Name Id Version Source
--------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.3.6.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.4.0.3 winget
Installieren von PowerShell oder der PowerShell-Vorschau mit dem Parameter id:
winget install --id Microsoft.Powershell --source winget
winget install --id Microsoft.Powershell.Preview --source winget