Great script; but there seems to be a small bug. When I start the script at the location it automatically runs to the closest bank to get a pickaxe, despite already having a pickaxe equipped or in the inventory. Additionally it removes all items worn. It then runs back to the location and successfully mines. Not a terrible bug, but I figured I should bring it to your attention! Otherwise it's a great script!
I've attached a screenshot to illustrate.