i want the command prompt should be invoke and the execution of lines should be visible
Use dos_system(); function for invoking command prompt and executing any dos command,
Not entirely sure what you want from the intial question.
But if it is running WR Scripts from the command line - read chapter 36 in the user's guide. It is the chapter titled "Running Scripts from the Command Line"
Insanity: doing the same thing over and over again and expecting different results