New-UDform -script : get output

if we have a script which returns some sort of output, be it text or an object how do we display this when using new-udform -script ‘myscript.ps1’? At the moment all that is returned is

rather than the output of the script.

figured it out, just need to make sure something is returned.

But is there anyway to reference the object that is returned?

So what did you do? I am new to this. the logs show it but nothing outputs.