I will give one example only. However, this example can be extrapolated into other sections of the Pakistan military.
If we look at the Pakistan Air Force, their attack backbone is composed of F-16 Fighting Falcons. They have Mirages in the interceptor role, which are very old. They are in the process of replacing them with Chinese-made JF-17s. However, the F-16 remains their mainstay. They have a Lockheed-Martin certified F-16 maintenance and repair facility.
During the recent regime change of Pakistani PM Imran Khan, there has been overwhelming evidence that the Pakistan Army was involved. No one knows why, because Imran Khan's government was running the country very smoothly. When the US undersecretary, Donal Lu, threatened the Pakistani ambassador in Washington because of Imran Khan's Russia visit, supposedly they also told the Pakistan Army to remove PM Imran Khan. The Pakistan Army promptly obeyed the USA and invited the opposition to take necessary measures while the army and judiciary helped them.
One theory that has been floating around on the social media is that the Pakistan Army is dependent on the USA regarding arms, training, and spare parts. They also have businesses and family members in the USA. So, they don't want to piss off the USA.
Is the Pakistan Army stuck in a position where they must abide by the USA's policy of Pakistan, or does it just want to control the country's affairs?
If I take the Pakistan military's dependence on the USA to be the real factor, can this be resolved by switching to Russian/Chinese/Turkish arms? Why or why not?