[lang-ref] ( change_directory ) ( powershell )
It 'should change directory' {
# Set-Location
# Note: Set-Location is not local to this block; it changes the caller's current location too.
$orgDir = Get-Location
Set-Location -Path 'C:\Users'
Get-Location | Should -Be 'C:\Users'
Set-Location -Path $orgDir
}