The solution involves pulling IIRC hitting the third to last switch, then second to last switch, and you cannot travel between the two when you do so. Normally this would be done by having a companion in the room with the second to last switch. You might be able to do it with a summon (you can get usable figurines if you aren't a caster) or a teleport ability.