I appreciate your sentiments but let me remind you of the reality in Pakistan. Ours is a crawl, walk, run kind of a journey where every step forward is marred by two steps back.
I get it that we want it to be so much better and not have Pakistani establishment behave in the mindset of a security state. But our own policies have metastasized the security apparatus' involvement in all walks of life. Trying to remove these tentacles will take time. It is good that people are calling out these tentacles and some in the establishment are surely taking note of this and getting it but they are currently not in a position to pull back. Regardless, I completely agree that Pakistan cannot have a situation where people are picked up without due process or the due process is made a mockery of (as in the case of getting released on one set of charges and then immediately being picked up for other cases etc.) however, this is the situation on the ground today and it will take time to get some normality.
So, for all those stating that the "military does not care to earn respect", this is misplaced. This is a huge issue for the military and they care. They cannot continue to operate in this space and not have public support, however, as it is said in Amreeka, currently all of our principal protagonists and antagonists (depending on whichever side of the divide you are) are "caught between a rock and a hard place."
For the establishment, foreign policy supersedes domestic policy and thus the current stance. I am not sure what the out is but one possibility is to have IK/PTI operate within the political realm but tone down the earlier FP positions. This would give Pakistan some space at the international level and also help on the domestic front.
I don't know what the right solution for Pakistan is and I doubt anyone here or even in the corridors of power, including the establishment, knows. Our knee-jerk and short-sighted policies have brought us to the precipice and just like we have destroyed our economy, geo-politically too, we are irrelevant to our own detriment.