winget search Microsoft.PowerShell
winget install --id Microsoft.Powershell --source winget
It is recommended to install Windows Terminal from the Microsoft Store.
The alternate way to install Windows Terminal is with winget command line (not recommended).
winget search "Windows Terminal"
winget install "windows terminal" --source "msstore"
The program is set when first used.
Upgrading from PowerShell version 7.3.4 to version 7.3.5.
winget update
winget upgrade --id Microsoft.Powershell --source winget
winget uninstall --id Microsoft.Powershell