Chris Woakes took another five-wicket haul in the match as Pakistan were restricted to 214 for eight in their second innings, ending the third day of the first Test against England at Lord's with a lead of 281 runs.
It left England knowing they had to chase down a record second innings total if they were going to go 1-0 ahead in the four-match series.
The tourists dropped to the turf to a man following their 75-run success over England, sealed when Mohammad Amir - back at the scene of his 2010 spot-fixing crime - bowled Jake Ball.
The celebrations in question, in which Pakistan's team performed and gave a salute to the flag above their dressing room balcony, were a nod to the army bootcamp undergone by the squad in Abbottabad prior to the tour and while Cook let slip some mild frustration at their excessiveness, they could become a feature of the series.
Pakistan, who had a first-innings lead of 67, were bowled out for 215, having added just one to their overnight total, leaving England needing their highest successful pursuit on the ground for victory.
Their bowling attack was too powerful in both innings of this Test match, with their three left-arm quicks - Rahat Ali, Wahab Riaz and Amir - offering flawless support to leg-spinner Yasir.
Now, the hosts have a little less than two days to attain their target of 283 runs and win the first Test against Pakistan.
Chris Woakes was a star performer for England, claiming 11 wickets while also making gritty contributions with the bat in each of his side's innings.
England needed 128 runs to beat its previous best successful chase of 282-3 against New Zealand in 2004.
Misbah said: "The team was really hoping we could get a chance to do it".
Misbah made a century during the first test match while Yasir Shah excelled in both innings as Pakistan's spin wizard, clinching ten wickets from the match. Mohammad Amir bowled out 2 players. Jonny Bairstow was the top-scorer for England with a score of 48 runs.
A ball after Gary Ballance had pulled him for four, Yasir bowled the recalled left-hander behind his legs for 43 with a delivery that spun out of the rough.
Joe Root, England's new No. 3, got off the mark with a back-foot cover drive for four off Rahat and also drove him through the same region, off the front foot, for another boundary.
The second test starts Friday.
Pakistani pacer Rahat Ali took all three wickets in the morning session. Vince struck nine fours, mainly through the offside, on his way to a Test-best 41 not out at lunch without looking assured.
Amir then returned to bowl Stuart Broad with full-length swing - and even Woakes, in a match he will nonetheless remember fondly for his brilliant individual performance, could prevent the inevitable as the last four wickets fell for 12 runs.