Paterson, James, active 1777-1784, Major -General