Gomm, William, active 1783-1798, Secretary of Legation in the United Provinces