a click macro that looks like this should work

/cast target=party1 cleanse,,,,
/cast target=party2 ,cleanse,,,
/cast target=party3 ,,cleanse,,
/cast target=party4 ,,,cleanse,
/cast target=party5 ,,,,cleanse