The Execute statements are tricky, but I use it whenever I need to create dynamic variables/objects. The problem may simply be with the setoption(). The way I have them written will only work if the novarsinstrings is turned on...
$nul = SetOption("NoVarsInStrings","On")