How to install PowerShell on Mac using Brew

The quickest way to install PowerShell on the Mac is by using the Terminal and the brew package manager.

Steps to install PowerShell on Mac

  1. Open Terminal App.
  2. Now run the brew cask command as below,
    % brew install --cask powershell
    ==> Downloading
    installer: Package name is PowerShell - 7.3.6
    installer: Installing at base path /
    installer: The install was successful.
    🍺  powershell was successfully installed!
  3. Once the installation is complete, just type pwsh to enter the PowerShell prompt.
    Code2care@Mac % pwsh
    PowerShell 7.3.6
    PS /Users/c2ctech> 

Well, that's it! You have PowerShell now running on your Mac!

Installing and Running PowerShell on Mac using Brew Cask

Facing issues? Have Questions? Post them here! I am happy to answer!

Author: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

Copyright © Code2care 2023 | Privacy Policy | About Us | Contact Us | Sitemap