You can use JSReportGenerator server action and pass the
JSServerURL ( whtich JS Report cloud account URL)
UserName (cloud account username)
Password (cloud account password)
JsonData (Json data for the template)
templateName (your template name)