It looks like you're asking about itself (not just running Windows Update).
Here’s the quick answer depending on your situation: PowerShell is updated separately from Windows. The latest is PowerShell 7 (cross-platform, modern), not Windows PowerShell 5.1 (old, built-in). Check your current version: $PSVersionTable.PSVersion Update to PowerShell 7: Option 1 – Windows (winget) – easiest powershell update
# If you already have PowerShell 7 installed pwsh -c "iex '& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI'" Update-Help -Force If you meant: run Windows Update from PowerShell # Install PSWindowsUpdate module (one time) Install-Module PSWindowsUpdate -Force Check for & install Windows updates Get-WindowsUpdate -Install -AcceptAll -AutoReboot Which one did you actually want? It looks like you're asking about itself (not