How to execute maintenance job from script and get back the result
If your end goal is to use JAMS, then it handles many of the SQL agent job conversions for you.

JAMS includes a native conversion utility for SQL Agent jobs to streamline the transition your organization’s transition to enterprise scheduling. Comprehensive mapping preserves the SQL Agent logic you’ve created and extends each job with an array of properties for advanced scheduling.

Taken from http://www.jamsscheduler.com/platforms/sql-databases/