Mackenzie, Alexander, Sir, active 1781-1800, 6th Baronet of Coul, Major-General