Use execute script (script within a script) with a data table

The main script data table can be passed down to subscript. The subscript cannot be passed to the main script. When you drag the subscript directly into the main script, the run time parameters will be entered automatically in the correct order.

The data table must be defined in the main script using a variable. (Also, make sure to define the Loop as a data table.)  

In the subscript, create an empty variable (type = string) and select the Runtime checkbox. This variable will receive the data from the data table during runtime.

After inserting the subscript into the main script, click the subscript and edit the variable that will receive information from the data table (type = string and usage = data table).