The scale of the rigging is massive.
Before the election, PTI was banned from participating. It's leader, Imran Khan was jailed. Many of it's politicians were tortured into dropping out. Many party cadre too have been beaten and killed.
During the election, internet had been shut down. Despite it all PTI-affiliated "independent" candidates were winning anywhere from half to two-thirds of all seats. And because it was so unexpected, the news channels were showing the vote counting and results live on air for many hours. Until of course they stopped. When they resumed, the ones who were supposed to win started winning again in many areas.
Right now PTI-affiliated independents are still the ones with the most seats but are nowhere close to a majority. The army rigged enough votes to make the other two parties able to create a weak coalition government, which is the best government for the army.
On the other hand, the whole affair has laid bare the true face of the army for young Pakistanis. Maybe something can happen from that.