How to get file object in Photoshop UXP

I am creating .psd file using createFile api and saving this file in local temporary folder. I want to use created file object in my application. How I can achieve this programmatically?

Thanks.

Hello,

Like this?

Regards