In the batch script, the semi-colon is terminating the mshta command, instead of the HTA command like you want it to. You'll have to quote the HTA command, or provide a script to mshta.exe.
I think that this should work:
mshta "javascript:alert('Thanks for taking a look at my question! :D');close();"