Adamson, Charles, Paymaster of the Aberdeenshire militia