Powershell — Update
The Windows Package Manager (Winget) is the fastest way to update PowerShell from the command line. Open your existing PowerShell terminal and run: powershell winget upgrade --name PowerShell Use code with caution. Using the MSI Installer
After updating PowerShell:
PowerShell is integrated into Windows 10 and later. To update PowerShell on these systems: powershell update