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

Works and it's on one line, only processes the spell availability once so less lag though lag doesn't matter while rezzing it's important to practice good macro writing for the macro's you use in combat