Actually you can script retreat orders for mindless commanders, they just have to be able to get off the battlefield in 1 turn. A quirk of the engine makes it take a turn before they "realize" they're routing and go into evaporate mode.
The Following 4 Users Say Thank You to Micah For This Useful Post: