The cypher-shell.bat is located at D:\GitHub\cypher-shell\cypher-shell.bat
. Neither of these commands starts the shell when I put it in the Run dialog:
pwsh D:\GitHub\cypher-shell\cypher-shell.bat
: PowerShell opens and exits immediatelypwsh -wd D:\GitHub\cypher-shell\cypher-shell.bat
: PowerShell doesn't exit but shows this error:Set-Location: Cannot find path 'D:\GitHub\cypher-shell\cypher-shell.bat' because it does not exist.
pwsh -f D:\GitHub\cypher-shell\cypher-shell.bat
: PowerShell opens and exits immediately
How should I do this properly?
I actually have added D:\GitHub\cypher-shell
to my path. Running pwsh "& cypher-shell"
, pwsh ^& cypher-shell
, or "%ProgramFiles%\PowerShell\7\pwsh.exe" "& 'D:\GitHub\cypher-shell\cypher-shell.bat'"
in Run dialog the terminal flashes for a moment and closes. In the moment it opens I can see it messages a red error.
The reason I want to use this in PowerShell because it supports more features, like copypasting or selecting text with keyboard only. The commands are also more convenient than CMD.