Converting comand to function

realy sry for spending time with is i already used parent[“child”] except of parent.child, but i forgot i can use it here parent[childFromString]
thx

again thx i copmleted it and it work prety well but i have problem: i am saving it in system var[1]=comand and var[2 or more]= parametr and if you know how to auto use all parametrs (when i set 5 parametrs it will sent the function with 5 parametrs …) onyl hethod i know is using swith made from dictionary