Scott, William, active 1798-1807, Adjutant-General at Fort William, Bengal