no, I didn't really know what a udf was!
So it seems that I have to start the script inside the script itself? eg
break on

$abc = OSID()

"Operating system = " $ab

get $_
Exit 1

(followed by the rest) for example?