1 Answers
Best Answer
this.SessionState.Path.CurrentFileSystemLocation
https://stackoverflow.com/questions/13897918/how-can-i-get-the-current-directory-in-powershell-cmdlet