The visitors were in a precarious situation at 73-4 but a 75-run stand for the fifth wicket between Ross Taylor and Henry Nicholls averted the risk of being dismissed for a low total.
Pakistan recorded a comfortable 6-wicket win in the clash against New Zealand with the next match all set to take place on Sunday.
The excellent Shadab Khan (1-25) got rid of Colin de Grandhomme and Shaheen kept it tight at the death, removing Tim Southee and Ish Sodhi before the in-form Taylor lofted Hasan into the leg side for his first six in the final over. Taylor reached his half century off 83 balls and continued to remain till the end. For Pakistan, Shaheen Shah Afridi was the pick of bowlers with 4 for 38 in 9 overs. The dazed Imam went off in the ambulance for a concussion check, but that only brought the prodigious Babar Azam to the wicket, and he teamed up with Fakhar Zaman to punish the Black Caps bowlers.
Larsen said he had impressed the selectors since his return from Australia, and would complement the New Zealand test bowling stocks.
Zaman scored a scintillating 88 before departing to Lockie Ferguson while playing a pull shot.
But Pakistan were in such a dominant position that there was no danger of them losing the match and they edged across the winning line with six wickets and nine and a half overs to spare.
The tour of eight games finished with the T20 series won 2-1, the 50-over rubber lost 3-0 and the two four-dayers both drawn.