Returning a value when triggering a macro via a script

You can return a value that way when triggering a macro via JXA:

WOW! When did this happen? Triggering a Macro from JXA can return a result!.

I would imagine it works with AppleScript also.