You'll need to change all the paths in the code to point to the right place.
Best just to use the built in ones in Radiant unless you know what you're up to with these batch files. I did get it to work but it's a bit touch & go on whether or not it will work.
I use BSP - meta just for testing (When I'm making a lot of changes)
& -BSP - META -VIS -FASTLIGHT (For when I want a map with lighting - without going to all the time of doing a hi-res light pass)
Remember to keep an eye on the junk.txt file to find out what's going on during the compiling process...