If you have encountered the following error ‘pwsh’ is not recognized it’s likely that PowerShell is not installed on your machine.
pwsh : The term 'pwsh' is not recognized as the name of a cmdlet, function, script file, or operable program

In this article, let’s learn how to fix the ‘pwsh is not recognized’ error by installing PowerShell using the Winget command.
Install PowerShell on Windows Machine:
- Install the PowerShell using Winget command
- Open the Command Prompt and run following command
winget install --id Microsoft.Powershell --source winget
winget install --id Microsoft.Powershell.Preview --source winget
- Close and reopen the Command Prompt.
- Run the pwsh command again in the Command Prompt, and it should now be recognized.

- You can even run a PowerShell script (i.e., .ps1) files using pwsh command.

🙂


![[Step by Step] Beginner : Create a PCF control and add it to a custom page](https://rajeevpentyala.com/wp-content/uploads/2024/12/image-49.png)
Leave a comment