❗️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>

- Fix PowerShell - .ps1 cannot be loaded because running scripts is disabled on this system
- How to Open PowerShell on Mac?
- Download Google Chrome setup exe file using PowerShell
- Connect Azure AD (Active Directory) for PowerShell
- How to check PowerShell version
- Update Powershell Using Command Line
- How to add sleep in Powershell Script
- How to switch to Powershell on Mac Terminal
- Know installed PowerShell Version on Mac
- How to install powershell on macOS
- PowerShell ps1 script is not digitally signed, you cannot run this script on the current system
- How to upgrade PowerShell on Mac
- How to Identify installed PowerShell version
- PowerShell on Mac: The term get-service is not recognized as a name of a cmdlet, function, script file, or executable program
- Run JumpCloud Commands in Powershell
- [Fix] Powershell - Term winget is not recognized as the name of a cmdlet function or script file
- How to search (find) in macOS Terminal Console Text - MacOS
- Docker Desktop needs privileged access macOS - MacOS
- How to check zsh installed version using terminal - MacOS
- CentOS Cannot find a valid baseurl for repo base7x86_64 yum - HowTos
- PHP drag and drop file upload tutorial using dropzone.js - PHP
- Installing Microsoft Edge on M1/M2 Mac - Microsoft
- Copy file from one directory to other in Php - PHP
- Telegram down in Europe - users facing connection issues and 500 Internal Server error - News