I don't think you are doing it right. Re read John's code in post 17. You have to make a couple of changes to his bat file.
In the code below, is the name of the scr file to run. If you always name your scr file BatchDrawings_Script.scr, then you don't ever need to edit the bat file again.
if [%script%]==[] (
set script="%~dp0\BatchDrawings_Script.scr"
In the line below, change it to the path of your acad.exe.
:: UPDATE as necessary.
if [%accoreconsole%]==[] set accoreconsole="C:\Program Files\Autodesk\AutoCAD 2024\accoreconsole.exe"
There's no need to create a bat that names all the dwg files. In Windows, if you drag a file onto a bat file, the bat file will run with the file passed as an argument. So just drag a bunch of dwg files onto the bat file and it will take care of running core console.
As far as your lisp goes, you have to debug it on a single dwg first. Do that by opening a dwg and running the SCRIPT command or dragging the scr file onto AutoCAD.