Pakistan is more pro-KSA, than it is pro-Iran. If the US invades Iran, Pakistan won't do a damn thing. Pakistan may say that it is against the invasion, just like it did with Iraq, but it won't actively oppose the US.
As for Iraq and Afghanistan being invaded, I'm right. Iran may have helped facilitate the invasion of Afghanistan, but it certainly didn't like the fact that the US continues to occupy it. Iran has been accused of giving material support to the taliban. In Iraq, Iran just took advantage of the situation, the US certainly didn't invade Iraq to appease Iran.
To say that the US somehow started two wars, in order to please Iran, in a thread about the US threatening action against Iran, that's honestly delusional.