open terminal to run cmd using shell script

i want the shell script to open the terminal and in that terminal i want to run a command specified in the script...
how can it be done...

Why do you need to open a terminal?

to know the status of each variables of each function that i have declared in my project...so can u tell me how can it be done...