You just add the UDF (unmodified) to your script (or call it from your script) then output to screen, or log, or whatever method you want.

Example
my oem code
my oem code
my oem code
my oem code
my oem code
new code to hold AV UDF values
GetNavAntiVirusInfo() UDF

Then the var you used to run the UDF should contain all the data and you just need to output it where you want.