First, install the module (if you haven't already):
It looks like you're asking about itself (not just running Windows Update). powershell update
Modern PowerShell is cross-platform and can be updated using standard package managers. First, install the module (if you haven't already):
Alternatively, you can update PowerShell using the package: powershell update
If you are running an older version (like the default Windows PowerShell 5.1) and want the modern features of PowerShell 7+, the best way to update is using the Windows Package Manager ( winget ).