We never got a detailed explanation of how the Eymorg women installed Spock's brain into their central computer network. All we were told is that it was placed in the central node and light rays of some kind connected his brain to the Eymorg underground power and environmental systems.
And then Dr McCoy dug out an RC controller and was piloting Spock. I bet he's wanted to do that a long time.