Parse returned info from executeJavaScript

I use the Execute Javascript function to get specific information on a menu on my site. How can I use this returned information in my Katalon testscript?

The below script works, but is there a way where I do not have to use the alert box?

WebUI.executeJavaScript(‘alert(“myText”)’, )

def MyText = WebUI.getAlertText()

println(MyText)