Resurrected and summoned creatures will follow you if you use Aura of Command. Resurrected creatures will attack any hostile creatures that are nearby, but don't wander around on their own much. If you leave the area, a resurrected creature will turn hostile (and you can kill it again for more experience). For summoned creatures, if you Banish them, they are just gone.
When you sleep, most creatures you cast Aura of Command on will be permanently killed. For some exceptions (some spoilers) see
[i]My boss collection[i].