Shirreff, William, active 1757-1773, Major