Try the Multiple File Import (MFI). On Windows it is available under File > Import Multiple Files, on MacOS is available under File > Open Multiple. It will save a script to the data table that is generated with the MFI that you could then copy and re-use, and you can also save a script to a script window from the MFI dialog.