I'm unable to manually convert a script to an "add script" function

Hello everyone,
I wanted to add a script in the terminal but the variables are getting lost if i look in the log of the script list.
I’m sorry. I’m new to this hole thing.
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.
Thank you for your help

Its better that you write what you like to do. What is the goal?

Do not post twice the same question,
and also write well the topic tilte:
Variables getting lost in the logging of script list” it’s incomprehensible,
changed to more adequate: “I’m unable to manually convert a script to an “add script” function

Continue here, already replied:
http://forum.mikrotik.com/t/adding-scripts-in-reset-configuration-script/161443/3