this is a simple problem if you do it right from the start.
first step: define your language. use a standard notation like BNF to specify precisely the grammar which will be used to write the scripts. eventually, annotate your grammar with semantic elements which will specify things that can't be expressed in BNF.
second step: write a parser. the parser will read the script and translate it to what is called an AST (abstract syntax tree). each element read will fit into a structure, and the whole structure will be a computerized representation of the script. (the AST is not strictly necessary, but will allow you to add loops, jumps or functions easily if needed afterward)
third step: interpret the AST. the easiest part.
a very precise and concise guide is "Compiler construction" written by N. Wirth, kindly
available online. you only need to read up to chapter 9.
other readings available
here (but most of them are very advanced).
please note that the first step is the most important ! a clear, concise and very precise grammar will help a lot for the rest of the project.