It sounds like you should use the UDF PIPE() (see the UDF forum)
You can execute a shell command and the output
will be returned in an array for you.