The only way to avoid them is to wear a Freddy Fazbear mask that will fool them, and thus you will be able to carry out your plan.
While the main purpose of the game is to stay alive, the situation quickly becomes very strange, as all animatronics will try to kill you.