UXP layerComp

Hello Hello, Guys,

I’m quite new to UXP and I’m trying to save some time for some of my colleagues to make a script that saves layercomps in different formats (JPG, PSD, PNG )
As far I could get I will need some sort of batchCommands, but I could not find any documentation on the JSON format.

Any help will be much appreciated.

Cheers