That gives us two avenues in PA - straight legislature and courts.
It will wind up one avenue with both the legislature and the courts involved.
The SC will rule certain aspects of the election unconstitutional and then point out that the state legislators have the constitutional power to remedy the situation, by appointing electors.
The state legislators will then act, hopefully in an appropriate manner.