bash – Is it possible to create exs24 files with a script?

Let's say I have a hundred samples and I want to make an exs24 instrument for each of them. Is there a script in which I can enter information such as the name, the key and the path of the audio file and then generate an exs24 file for me?

If the exs24 files were plain text, this would be easy to do myself. I tried to make a script of this type but they are binary files.