Shadwell, Edward, active 1685-1718, Duke of Bolton's Foot, Captain