Ask for more docs on how to write a mavproxy script

I wrote a very simple script:
motortest 1 0 30 2
motortest 2 0 30 2
but my Pixhawk reads only one command. I also tried different ways to seperate those two commands but it doesn’t work either. Unfortunately, I couldn’t find some more informations about how to write Mavproxy scripts. There are only some mavinit.scr files which are hard to use for a simple test.
So I would like to know if there are some tutos for correctly writing a script?