I have a batch script on my computer called cs.bat
. When I enter cs
in the command prompt, pushd
takes me to a certain directory and leaves me there. In PowerShell, the command does the same thing but then brings me back into the starting directory.
Why is this the case? How can I make it so that I stay in the directory after typing 'cs' into power shell?