layer.moveBelow behaves differently depending on the version

I’m trying to move move a specific layer below another specific layer.
but it works greatly in photoshop 23.1 but behaves differently in photoshop 22.2

In photoshop 22.2 instead, it puts the layer on top of the targeted layer, not below.

Is there way to get the current version of the photoshop in UXP js?

Thanks in advance.

Yes, I believe host is what you’re looking for

Thanks! saved my life