Dave Looman
Ansys Employee

A nice feature of "Commands Objects" is the ability to make the inputs and outputs design parameters.  If you  retrieve the energy into a parameter with the prefix my_ it shows up in the Commands Object details as shown below and you can check the parameter box to make it an output parameter.