hm, writing it from scratch, but i think:

/cast [target=party1,exists,dead][target=party2,exists,dead][target=party3,exists,dead][target=party4,exists,dead][target=party5,exists,dead]Resurrection

should do it. Of course you can change party1,party2... to the names of your toons...