if you mean using 1 command and outputting 2 lines, this might help ya
/echotest {
/echo test1
/echo test2
}
that makes it output 2 echo's, just from typeing /echotest, you can use this to add it to a script, but i'm not that good at advanced scripting, but this should help you