Add Text via Plugin without 'Insert/Paste Text' Dialog popup?

I fear I already know the answer, but is there any way to add text to your sprite via a script instantly? I’m working on an export script that takes a set of icons, and creates a new animated Aseprite file to allow for automatically creating thumbnails for social media etc. I was expecting to easily be able to add text, such as the title of the original Aseprite file I’m exporting, as well as tag names etc to the end result, but I haven’t been able to find anything concrete.

app.command.PasteText() doesn’t seem to have any parameters, nor can I change the arguments that Dialog() has. I looked into GraphicsContext, because it has :fillText() and :measureText(), but it doesn’t have any option for retrieving the .image the GraphicsContext has generated, nor any way to set the font used.

Is the only option for me to just call app.command.PasteText() and manually fill in all the data, press OK, etc every time I export?