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

I will be foolish and guess that 'Srvmgr>' is a prompt generated by a program called Srvmgr, and that it reads the command-line from STDIN.
# Run Srvmgr in a pipe open (SRVMGR, "|Srvmgr.exe") || die "Can't run Srvmgr:$!"; print SRVMGR 'Run Task for comp ProcMgr server sieb04_env# with proce +ssName="Project Deployment", RowId=”Captured Session Id”',"\n"; close SRVMGR;

Is that what you are looking for?