What would be the equivalent statement of CMD's:
dir && cd ..
in Powershell?
I tried:
dir -and cd ..
but it throws error:
Get-ChildItem : A parameter cannot be found that matches parameter name 'and'.
At line:1 char:5
+
dir -and (cd ..)
+
CategoryInfo : InvalidArgument: (:) [Get-ChildItem], ParameterBindingException
+
FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell .Commands.GetChildItemCommand