Powershell will have to be in the list of shells in the file /etc/shells. To see the list, use cat: cat /etc/shells You should see a line that contains "pwsh." On this system, there are two of ...