Marcio,
Have you seen the sample Tcl script ni provides?
seems like the mechanism to return control to test stand is by means of an output variable defined in the sequencer.
Then, whenever Tcl sets the variable, control is returned to test stand.
Jicote.