Algorithm for computing the moduli space of pointed Gorenstein curves with Weierstrass gap sequence \(1,2,\ldots,g-2,\lambda,2g-3\) The Galois representation of type \(E_8\) arising from certain Mordell-Weil groups 