Pakenham, Edward, active 1784-1794, Captain