cmdコマンドプロンプトで、このコマンドを実行すると、ホームディレクトリに移動します。
cd %UserProfile%
PowerShellコマンドプロンプトで、同じコマンドが次のエラーを生成します。
Set-Location : Cannot find path 'C:\%UserProfile%' because it does not exist.
At line:1 char:3
+ cd <<<< %UserProfile%
+ CategoryInfo : ObjectNotFound: (C:\%UserProfile%:String) [Set-Location], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
PowerShellの同等のコマンドは何ですか?