Line 3 on both cleanup scripts has "DROP TABLE IF EXISTS" line. This particular line seems to cause a syntax error depending on the version of SQL server you are running.

Simply remove the "IF EXISTS" section of the line, and it should correct the issue.