You have multiple possibilities:
You can use
Run Macro on all files within folder instead of using a batch file.
You can pack your macro into a macro which runs on all open files as explained at
How do you run a Macro on open files?The last suggestion I have is to use the optional parameter which specifies how often the macro should be executed. Something like
uedit32 P:\Test\EDI\P* /m
,70="P:\Test\tco3.MAC"
Of course that is a method I have never used because the number must be equal the number of files which are opened. Your macro must have the macro command
CloseFile Save at the end.
Hint: Suggestion 1 and 2 use a loop. If your macro uses also a loop, you have to create a second macro because nesting of loops is not possible.