That error shows that you have modified the script from what you originally posted.
Please try compiling the original script above again, then copy/paste any errors you see in the Event Log. Let's not change things while we are trying to troubleshoot -- it just makes everything more complicated for us.
And also copy/paste yet again *exactly* what you are compiling.