That's actually the whole point of these lisps - otherwise (as the original post states) the BAttMan command can do this for you (one at a time).
Any lisp code can be placed directly into a script, or you can load a LSP file from a script, or you can of course call any lisp defun from a script. You should see a script file as a file containing all the keystrokes you type into ACad's command-line. It's as if you tell acad, read the file as if it is the keyboard.