Add layer with a .jpg picture file

Hi

I need some help, is my first time making a UXP plugin and i don’t find how to do the next, maybe there’s no possibility to do that.

I have a script that gets the name of the activeDocument and searches a file based on some parts of this name in a folder.

Now, i want to get the file selected and add it as a layer over, like a superposition. Is possible?

Thank you