PowerShell Location

Get-Command *location
about_Locations

Get-Location

Write-Host (Get-Location)
Write-Host (Get-Location).Path

Set-Location

将当前目录改为当前脚本所在的目录

Set-Location $PSScriptRoot