Knox, William Hunter Douglas, active 1782-1811, Colonel