

At /usr/local/microsoft/powershell/6.0.0-beta.7/Modules/PowerShellGet/1.1.3.2/P SModule.psm1:1867 char:21 + … $null = PackageManagement\Install-Package + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:S tring), Exception + FullyQualifiedErrorId : AdministratorRightsNeededOrSpecif圜urrentUserSco pe,Copy-Module.InstallPackage You can also try running the Windows PowerShell session with elevated right s (Run as Administrator). Log on to the computer with an account that has Administrator righ ts, and then try again, or install by adding “-Scope CurrentUser” to your comma nd. PackageManagement\Install-Package : Administrator rights are required to instal l or update. If you don’t mention the -scopeCurrent user it will throw an error message as below.Then launch the below command on the PowerShell window.Install-Module -Scope CurrentUser Once it is installed launch the terminal and type in PowerShell.(Make sure you allow the packages from 3rd party sources.) After you download run the setup on the mac.First download the PowerShell package for mac from here.Installer: Package name is PowerShell - 7.2.2 Package installers may write to any location options such as `-appdir` are ignored. => Running installer for powershell your password may be necessary. => Uninstalling packages your password may be necessary: You might see information like above when a new version of PowerShell is available on Mac, in order to update it, you need to run the update command with brew the package manager that you must have used to install PowerShell, % brew update powershell


Upgrade now, or check out the release page at: Upgrade PowerShell on Mac A new PowerShell stable release is available: v7.2.2
