You did something wrong.
You either copied my script from email notification, or you didn't copy entire script. Maybe missed "colon" in front of "Processes". Please, retry.