How to get the current directory of the cmdlet being executed September 24, 2022 by Tarik Yes, that should work. But if you need to see the absolute path, this is all you need: (Get-Item .).FullName