Update Powershell
You can also manually download and install PowerShell on Linux and macOS from the GitHub releases page .
(as of my last update):
Updating the core engine is only half the battle. You also need to keep your environment’s tools and documentation current. How to update PowerShell | PDQ update powershell
The primary argument for updating PowerShell is security. Cyber adversaries constantly refine their techniques, and Microsoft responds by patching vulnerabilities in its software. Running an outdated version of PowerShell is akin to leaving a backdoor unlocked. Older versions, such as Windows PowerShell 5.1, are no longer actively developed and receive only critical security updates. However, the modern, cross-platform PowerShell 7 (often referred to as PowerShell Core) receives frequent updates that address newly discovered exploits, including those related to script injection, remote code execution, and privilege escalation. By failing to run the latest stable version, an organization exposes itself to known and documented vulnerabilities that attackers can easily exploit. You can also manually download and install PowerShell