Run Single PowerShell Command in Terminal on Mac - DevPops-Inc/mac GitHub Wiki
• Press the “command” key and the spacebar, type “terminal” and select the “Terminal” application.
•
• Type pwsh -command < PowerShell command >
and press the “return” key to run a single PowerShell command without entering the interactive shell.
•