That is, "who were controlled by evil spirits."
This could also be translated as, "When Jesus gave the command to them."