Hoste, William, active 1781-1810, Captain