How To Update Powershell -
$PSVersionTable.PSVersion Example output:
If the command is not found, install the first: how to update powershell
Install PowerShell 7+ if you haven't already — it receives active updates and new features. Run Update-PowerShell periodically to stay current. $PSVersionTable