In powershell cd is an alias of set-location
get-command cd
That is set-location performs the same operations as cd.
Out of the box, set-location does not provide the minus functionality that takes us to the previous working directory.
To modify cd, we have to first remote the alias to set-location: