Powershell implementation of Mark & Jump