Those box brackets indicate that the content of it is a variable - sorry for me assuming that was clear. Line count numbers in front of each line is mandatory, so I didn't include them in my example.

The DOS window doesn't close automatically after it finishes executing - that enables errors to be displayed. It does say 'press any key' though

I updated the example to avoid mistakes (still no line numbers but it's mentioned). Thanks for pointing out the issue.