Not sure why, but In general the text you get in Summary Alert is different from what you get in Simple Alert, also the text also varies based on what option you select for the alerts like "Whenever severity increase, report final state etc". that may be the reason why this script may not be working.