Alexander Elphinstone, 4th Lord Elphinstone — Scottish administrator