Replacement for `pwd` in Windows PowerShell

powershell, pwd

Solution

Both of these are valid if you are trying to make a var with your current dir:

$current_directory = (pwd).path
$current_directory = pwd

The development team for Powershell contains a couple of Unix guys, so there are some goodies in there like `ls`, `pwd` and `cat`

Problem

I have a Unix script which uses the command ``` Current_Dir=`pwd` ``` What would be the suitable replacement for it in Windows Power shell script?

Original source