To directly answer your question, what you're looking for is eval(fullScript)However, as Mototroller pointed out, this is a terrible approach. You should just be doing this directly:Game.spawns.Spawn1.createCreep([WORK,CARRY,MOVE], undefined, {role: 'test'})
and modifying the parameters.