You could try removescriptpackage - whatever current AI package they're doing will be stopped. Though if you want to remove them all I don't know if there's a way (outside the GECK) to see how many AI packages they have.
After "removescriptpackage" "evp" will make them reevaluate their packages and pick the next one in the list. If they don't move, or don't do anything it should be safe to say they have no more.
After re-reading, or if you want to
freeze someone in place, TAI (Toggle AI). To freeze everyone, including yourself (that's not avoidable afaik), go into third person and type TFC 1. Handy for action screenshots