I tested your script and so long as $AlertAddress has @@, it works fine.

Are you getting any errors?

cj