How To Update Powershell !!better!! Here
$PSVersionTable.PSVersion Example output:
Install PowerShell 7+ if you haven't already — it receives active updates and new features. Run Update-PowerShell periodically to stay current. how to update powershell
winget upgrade Microsoft.PowerShell After updating, run the version check again: $PSVersionTable