AutoIT meet Mr. Bj P. Mr. Bj P. meet AutoIT.
The easiest way is to copy the names to the clipboard and have AutoIT read the names off the clipboard, edit a parameter that is set to drive the text in a sketch, and then proceed with whatever other steps are required.
You'll be looking at SendKey and WinWaitActive for initial functions to control what's going on. Sendkey to run a mapkey that goes through the edit steps.
You might also need MouseClick (pretty sure that's the function name) at some point.
The same AutoIT program could also be checking on other things, like sending files to other software and running that operation as well. Note that this will tend to take over the machine, unless you are careful at programming. You might include a message that simply asks "OK to proceed" at each loop to give you the chance to stop it if it's not performing the way it should
Much of this can be done with VBA, but it's less easy to learn and the AutoIT users have a more interesting support group.