Sir, to be frank with you, do you know what Mr. Khan is after? I doubt he knows because his acts make no logical sense or even show any benefit to him. Here is why I said this.
If Mr. Sharif doesn't leave, what would happen? More violence. If he decides to bring hundreds of thousands of his people on the streets.....what happens? More Violence and probably a Civil War. If the military takes over, what happens? The entire system gets wrapped up, your institutions, and everything else, semi built, go back to pre-2000.
How about foreign investments? No country, including your best friend China, has ever invested into Pakistan with a military running it. How would the military deal with the external pressure from the US (possible sanctions) and a semi-war on the border on both sides of your country?
And let's say, the military takes over and does elections (guaranteed pressure from the UN and observers from the UN will be present or sanctions, its that simple), well...who'd WIN? And what would Mr. Khan do if Mr. Sharif wins again? (Which, per recent surveys done by the US show he will). So you are back to square zero! But the loss to the country in this time will be countless, probably a few hundreds of billions and an upcoming economic era gone forever with CPEC, etc, out of the door.
Please enlighten me if I missed something from my analysis. May be you know more than what I've researched. Thanks