To switch to Powershell from any shell ZSH/bash etc on the Mac Terminal app you can make use of the command pwsh. Just type pwsh on any shell that you are logged into and you will be switched to Powershell.
Demo:% pwsh
PowerShell 7.2.1
Copyright (c) Microsoft Corporation.
https://aka.ms/powershell
Type 'help' to get help.
PS /Users/code2care>
As you can see, from the default ZSH shell I moved to the Microsoft Powershell using pwsh command. Once you switch you would see that the prompt has changed to PS
To exit Powershell just type exit.

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!