In SAMAdminGuide.pdf, p.543, Application Variables, thre a list of interesting macro:
${ApplicationID} Internal unique identifier of the application
${ApplicationTemplateID} Internal unique identifier of the parent template
${JobId} Internal unique identifier of the SolarWinds Job Engine task associated with this application
${Name} Application name
${NodeID} Internal unique identifier of assigned node
${Status} Numerical application status code. For more information see “Status Icons and Identifiers” in the SolarWinds Network Performance Monitor Administrator Guide.
${StatusDescription} User friendly application status
${UnManaged} States if application is currently unmanaged
Sadly, this list is only for Network Atlas.
Are there other possible macro for script (in argument or body) other than ${IP} ${USER} ${PASSWORD} ?