I did some similar things (without data extract) where I needed some help from others, this is the post:
https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/running-a-script-through-a-batch-fil...
I originally based it off an AU class by Michael Best (link in the original post)
basically you do something like this:
set accoreexe="C:\Program Files\Autodesk\AutoCAD 2024\accoreconsole.exe"
set source="C:\YourDirectoryWithDWG's"
set script="C:\YourScript.scr"
FOR /f "delims=" %%f IN ('dir /b "%source%\*.dwg"') DO %accoreexe% /i %source%\%%f /s %script%
I'm not sure the core console is capable of executing a data extraction, it is not 100% the same as the interfaced version of autocad and it's very difficult to find documentation about.
If per chance the name of the dwg's is always the same you can just skip this all and just save all 3 .dwg's in the same dxe file. It is perfectly possible to run data extraction on multiple drawings at once.