If you set a target for one of your AI and then tell him to engage (3, 4), the disengage command (3, 6) doesn't cancel the previous order.
If you tell him to return to formation he will comply but then, if you assign him a specific target, he will automatically break formation to engage, even if you want him to engage from formation.