Pakistan captured five wickets late on the fourth day of the second Test on Monday to close in on a victory that would tie their two-Test series.
West Indies ended the penultimate day in dire straits at 130 for five, still trailing by 297 runs, with their entire top order removed and a full three sessions to survive on Tuesday.
Taufeeq Umar and Misbah-ul-Haq had earlier both completed centuries, allowing Pakistan to make an early declaration and set West Indies a daunting target of 427 to win.
Umar equalled his highest Test score of 135 while Misbah-ul-Haq was unbeaten 102 when Pakistan declared at 377 for six, just before tea.
West Indies, who won the first Test in Guyana, suffered an immediate setback when opener Kraigg Brathwaite was bowled for a duck by a superb inswinger from Tanvir Ahmed.
The home side needed to show the kind of batting resilience that has long been missing from their displays and for a short while Lendl Simmons and Darren Bravo, two of the Caribbean's young batting hopes, offered some encouraging signs of resistance.
But Simmons was caught for 24 by Mohammad Hafeez, at the second attempt after he chopped at a rising delivery from slow left-armer Abdur Rehman and West Indies then slumped to 63-3 when Ramnaresh Sarwan was trapped lbw by Rehman without scoring, the verdict coming after a referral.
Jamaican Marlon Samuels made just six before he was caught behind as spinner Rehman picked up his third victim but with Bravo and Brendan Nash at the crease, there was still some hope of West Indies being able to put up a real fight.
Shortly after reaching his half-century though, Bravo was rapped on the pads by left-arm seamer Wahab Riaz and at 115-5, West Indies were already in big trouble.
Wicketkeeper Carlton Baugh joined Nash, who reached 30 by the close, and with only skipper Sammy remaining as a recognised batsman, the chances of defiance look slim, especially with their frailness against spin once again exposed.
Pakistan (1st innings): 272
West Indies (1st innings): 223
Pakistan (2nd innings): (overnight 202 for three)
Mohammad Hafeez b Sammy 32
Taufeeq Umar run out (Sammy) 135
Azhar Ali c Sammby b Bishoo 53
Asad Shafiq c wkpr Baugh b Roach 4
Misbah-ul-Haq not out 102
Umar Akmal b Bishoo 30
Mohammad Salman c Roach b Rampaul 8
Tanvir Ahmed not out 4
Extras: (w-7, nb-2) 9
Total: (6 wkts declared in 112.2 overs) 377
Fall of wickets: 1-82, 2-158, 3-167, 4-296, 5-358, 6-367.
Bowling: Roach 21-6-58-1, Rampaul 24.2-6-87-1, Sammy 23-3-64-1, Bishoo 38-5-149-2, Nash 6-0-19-0.
West Indies (2nd innings): (target: 427)
L. Simmons c Mohammad Hafeez b Abdur Rehman 24
K. Brathwaite b Tanvir Ahmed 0
D. Bravo lbw b Wahab Riaz 50
R. Sarwan lbw b Abdur Rehman 0
M. Samuels c Mohammad Salman b Abdur Rehman 6
B. Nash not out 30
C. Baugh not out 7
Extras: (lb-6, w-1, nb-6) 13
Total: (For 5 wkts in 53 overs) 130
Fall of wickets: 1-5, 2-59, 3-63, 4-77, 5-115.
Bowling: Tanvir Ahmed 5-0-10-1, Wahab Riaz 7-1-26-1, Abdur Rehman 14-6-26-3, Saeed Ajmal 17-4-39-0, Mohammad Hafeez 10-1-23-0.