Mainframe Automation - What is the best way to Automate using Host On Demand (IBM Tool)

Hello Friend.
Did you find out how to automate your process?

I need to create an automation for the IBM 5250 mainframe, but I am in the same situation, I only have access to Host-On-Demand.

I found in the documentation that it is possible to use an API to make the connection with javascript, however I have little knowledge about it.

Could you help me if you found out?