Adding scripts in reset configuration script

My Code is already working the way it should work. Just wanted to add it in the reset configuration script.
With the command ":local myCon do={:put "container";:return}" the terminal looks like this :

[admin@DISE_LAB11] /system/script> run container-run
container
value:

There i just give the number of a container i want to run. As example container number "0". And with the second line it gives the input to the variable $containerlist wich will be getting used in the following commands

/container start $containerlist;
/container shell $containerlist;
delay 1;
/container stop $containerlist;

Thank you for helping me.
Now I have another problem where maybe you or someonelse could help me. If i write the following code in Terminal everthing seems to be normal.

/system script
add dont-require-permissions=no name=container-run owner=admin policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="\
    \r\
    \n:global myCon do={:return};\r\
    \n:global containerlist [$myCon];\r\
    \n/container start $containerlist;\r\
    \n/container shell $containerlist;\r\
    \n/delay 1\r\
    \n/container stop $containerlist;"

But if I look in the script list what is logged it will show me the following code:

:global myCon do={:return};
:global containerlist [];
/container start ;
/container shell ;
/delay 1
/container stop ;

My variables are lost and i can't see why it behave like this.