Caldwell, William, active 1777-1784, Captain