I have been attempting to run powershell as my terminal on windows in pycharm, so I did the following:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser
You only need to write powershell
in the Shell path input, just like in the image, also you can see jetBrains documentation and configure any shell you want.
powershell configuration
If you're running on Windows 8 x64 then running both the commands below may help. It worked for me.
Set-ExecutionPolicy Unrestricted
start-job { Set-ExecutionPolicy Unrestricted -Force } -RunAs32
Credit to a comment found here: Powershell on Windows 7: Set-ExecutionPolicy for regular users
In the Default Shell TextBox you can append the execution policy command line option like so:
powershell.exe -Executionpolicy Unrestricted
For WebStorm and PowerShell 6+ on Windows 10. Just follow this screenshot and change the default cmd.exe to pwsh.exe from settings. Finally restart the ide. Done!