Create an event
Have it ask for a 5 digit code.
Then make a conditional branch and have it = the desired number to make the switch move
Choice A: Make a move event, and set it to "this event" and make it move out of the way.
Choice B: Change Event Location and teleport it out of the way
End Processing Event