Pakistan captain Salman Ali Agha made 107 off 90 balls as his side won the opening match of the ODI tri-series by 37 runs in Rawalpindi.