❗️For this to work, you need to have PowerShell installed on your Mac if it's not check out this tutorial - https://code2care.org/howto/install-powershell-on-macos
In order to open PowerShell on a Mac running macOS you should open Terminal App and type PWSH, this will switch your current Shell to PowerShell, you can see that the prompt has changed to PS > which indicates PowerShell.
In the below example, I have opened PowerShell from the current Zsh shell,
% PWSH
PowerShell 7.2.1
Copyright (c) Microsoft Corporation.
PS /Users/c2c>

Open Powershell on Mac
More Posts related to Powershell,
More Posts:
- How to open terminal on Mac to run commands - MacOS
- Change SharePoint search results FullTextSqlQuery RowLimit 10000 - SharePoint
- Calculate Area of Square - C-Program
- JSON Tutorial: List of Lessons - Json-Tutorial
- How to Subscribe to Google Nest Aware on iPhone - Google
- How to Connect to AWS Windows EC2 UI Instance from M1 Mac (Updated 2022) - HowTos
- How to uninstall GarageBand from Mac - MacOS
- How to hide or cancel Toast message in Android Programming - Android