CMDの同等のステートメントは次のとおりです。
dir && cd ..
Powershellで?
私は試した:
dir -and cd ..
しかし、それはエラーをスローします:
Get-ChildItem : パラメーター名 'and' に一致するパラメーターが見つかりません。
行:1 文字:5
+dir -and (cd ..)
+CategoryInfo : InvalidArgument: (:) [Get-ChildItem]、ParameterBindingException
+FullyQualifiedErrorId : NamedParameterNotFound、Microsoft.PowerShell .Commands.GetChildItemCommand