Give the Set-Location CmdLet the abilty to go back to the previous location.
Give the Set-Location CmdLet the ability to go back to the previous location similar to "cd -" in Linux. Perhaps a switch parameter. This way we would not need to "remember" the previous location. This would be a simpler alternative to manually recording the current location before moving to the new location such as:
Push-Location -Path (Get-Location)
Set-Location -Path <New Location>