Are you sure you need to open cmd.exe and then execute a command in it? Perl can issue a command to windows, even run a dos/windows .bat file without having to run cmd.exe. Perhaps you should tell a bit more specifically what you want to do rather than asking us how to do it the way you think it might be done. This looks like a case of XY Problem.
Comment on Re^3: executing commands in cmd using perl
You are right man.But thanks for the support of the perl monks community I got the work done.In future before asking something from you guys I will take care of the xy problem that you mentioned.