Nettop mac OSX

Nettop needs a terminal to run, is there a way to get the information from nettop in xojo, a shell gives an error as its not a terminal.

does netstat -n give you what you need? that works via shell.