in reply to How to replace the command line with Perl?

As you don't tell us anything about the environment, especially what the significance of "Srvrmgr>" at the start of your "command" is supposed to be, it's rather hard for us to guess at what you actually want. I suggest that you tell us more about your environment and the problem you're trying to solve.