Did Pakistan army influence judgement against Nawaz Sharif to help Imran Khan win upcoming elections?

Did Pakistan army influence judgement against Nawaz Sharif to help Imran Khan win upcoming elections?