I don't know Pakistani army is good or bad, it is wrong to generalize and most importantly it is up to Pakistanis to judge their own army.
One thing i am sure of as a foreigner, Pakistani army has every right to act above the national laws of Pakistan. They sent a general to KSA despite parliament's vote to avoid taking part in Yemen war.
Forget about prime ministers, none of Pakistani PMs were able to finish their terms as i recall, when someone is able to bypass parliament then you can surely and rightfuly claim he has the real power and he is the one in charge of country and he is above law.