Converting Shell script to Dos batch files

Hi friends!
I am having some simple shell script files to build postgresql database and all. Now i want to convert those scripts to dos batch scripts(to run on windows XP/2000/NT) because there is no need of unix emulation for latest release of postgresql. Please somebody help me.

It is going to be difficult. The DOS shell provides very few of the things you're probably using a shell for; it has no glob matching, no real looping structures except IF x THEN GOTO y, no string operations, no quoted strings(!!) unless the application itself parses them, no elegant way to launch or wait on background processes, only very limited use of pipes, and can't even tell you what your working directory is!

If you posted a little of your existing code I could show how to convert some of it, perhaps, depending on if that was possible. Alternatively, a language like Perl might be more suitable.