“in such manner as the Legislature thereof may direct”
So what did the PA Legislature direct? Do they allow for a Governor or Judge to meddle? I doubt it, but we need to see who wields authority once the Legislature has directed. If they say that the SoS shall certify, based on the popular vote, yada, yada, then they may be trapped by their own laws.
They can essentially do what they want.
No...the Constitution gives over riding direction in this case. It is a Federal directive specifically aimed at the legislatures, not their “state laws”.
It’s happened before.