Mohammad Abbas became the first Pakistani pace bowler to get a ten-wicket haul in the UAE.
Waqas Maqsood to debut for Pakistan in T20Is against Australia.
Babar Azam fell one run short of his maiden century as Pakistan set Australia a mammoth victory target of 538.
Pakistan stretched their lead to 281 runs at the end of day 2 in Abu Dhabi with eight wickets still in hand.
Fakhar Zaman and Sarfraz Ahmed guides Pakistan reclaim advantage after Lyon wreaks havoc.
The visitors hung on by two wickets to draw the Dubai Test, as Pakistan applied immense pressure in the final hour.
Khawaja reached his second half-century of the Test by stumps, but Pakistan remained in firm control after the fourth day.
Pakistan lose three, extend lead to 325 after visitors collapsed from 142/0 to 202 all out as Bilal picked up six wickets on debut.
Haris Sohail scored his maiden Test ton and added 150 for the fifth wicket with Asad Shafiq.
A 205-run opening stand from Mohammad Hafeez and Imam-ul-Haq as Pakistan finished the day at 255 for 3.