\switch door

This Command Open or Closes a door that you are looking at(the dimension has to belong to you!).