One of Azure cmdlets, namely New-AzureServiceProject
, changes the current directory upon its completion (maybe a bug?).
For further lines in my script to work, I need to roll back this change, what's the best way to do it? Calling "cd", if I'm not wrong, would affect the current working dir if my scipt was called from some other directory. So maybe I should use Push-Location
/ Pop-Location
somehow? Or is there a way to prevent 3rd party cmdlets from changing the current location?