pushd (split-path $myInvocation.MyCommand.Path);

Not reasonably as simple or memorable as the batch file version sadly…


Check it out:Cup(Of T)