Harvey, Henry, Sir, active 1794-1806, Captain