You should be able to paste that code directly into a standard VBA module. You shouldn't need to add any refernces, as long as the machine has the necessary libraries/files to create the Wscript.Shell object (and any Windows machine should be able to do that).
Whether your script would run would be dependent on whether your batch file is correctly formed.
For my money, if this is a batch file, then why not just buld the batch file and call it with shell:
Shell "full path to your batch file"