Install PowerShell on MacOS

What is PowerShell?

PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS. -https://docs.microsoft.com/en-us/powershell/scripting/overview
  1. Start LaunchPad from the dock
  2. Search terminal > Click Terminal to launch it
  3. Run the following commands in the terminal window
    # install command line tools
    xcode-select --install
    # if prompted, click install and agree to install command line tools
    # install homebrew
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    # enter your password
    # press Enter to continue
    # install openssl
    brew install openssl
    # install powershell
    brew install --cask powershell
    # enter your password when prompted
    # launch powershell
    pwsh

Source: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos