Bamshidhar Kalu Pande, Commander of Gorkhali forces during rule of King Prithvi Narayan Shah