Search notes:

PowerShell: The automatic variable $PWD

$pwd stands for present (as in current) working directory.
The type of $pwd is System.Management.Automation.PathInfo.

$pwd and Directory.CurrentWorkingDirectory

The values of $pwd and GetCurrentDirectory() (class system.IO.Directory) are not necessarily the same:
PS: C:\Users\Rene\AppData\Local\Temp> $pwd

Path
----
C:\Users\Rene\AppData\Local\Temp


PS: C:\Users\Rene\AppData\Local\Temp> [System.IO.Directory]::GetCurrentDirectory()
C:\Users\Rene
The reasons are

See also

Typically, $executionContext.SessionState.Path.CurrentLocation has the same value like $pwd, but is read-only, while $pwd is writable.
pwd (not $pwd) is an alias for the get-location cmdLet
$home points to the home directory.
Other automatic variables

Index