IanC, may I ask a question.
Is there a school that wants students to write scripts in DOS command lines?
Is so, why would any school use DOS commands as a learning project?
Here is why I ask.
Years ago Microsoft pulled away from doing more stuff with the command line and introduced variations of the BASIC language as a script tool. There was Visual basic for DOS, Visual Basic for applications and Quick Basic. An later they gave the world VBScript, which is easy to use from the command line.
https://www.computerhope.com/jargon/v/vbscript.htmVBScript is a scripting language developed by Microsoft and released to the public in 1996 that gives Microsoft Internet Explorer enhanced capabilities beyond those available through HTML. Below is a basic example of a JavaScript that prints "Hello World!".
Why don't schools teach these improved Microsoft methods to solve simple takes? Why focus on DOS based tools? The DOS FOR command is the worst thing Microsoft ever made!
https://www.computerhope.com/jargon/f/for.htmOf course, sometimes a command line script is best, but it depends on what you want to do.
Just asking.