Mahmud Shah Durrani — 1801 to 1803 and 1809 to 1818