Double clicks a shovel and then uses last target, so just use a shovel on a map and then run this ma...
You'll want to make sure to check the loop button checkbox.