well i've figured out a way to use maya -prompt in linux by redirecting its input to a file which contains all the mel commands i need to run. Like this:
maya -prompt < test.mel
However i cant make it work in windows. I tried using maya -batch like above but nothing's happening. there is nothing in the documentation about the batch commandline option. How do you use it?