in reply to how to execute 'tmboot -y'

Perl is not the same as a shell script. Sure, you can do the same sort of tasks but you have to perform them slightly differently. A system call creates a sub-process that inherits its environment from its parent but it cannot affect its parent's environment. Try executing both 'setenv.cmd' and 'tmboot -y' within the same system call.