It’s not recommended to bypass the lid switch because your washer won’t know if the lid is securely locked in place. If someone were to open the lid, there could be an accident or the machine could be damaged.
That being said, it is possible to bypass a lid switch if you have extra wire and have some experience with open and closed currents.