Hi perlprint,
Please use <code> </code> tags around your code, <p></p> Paragraph tags around your paragraphs and have a look at How To Ask A Question (Simple English) (RFC)
I'm not sure you need a named pipe in this instance, you aren't forking and don't seem to be going to a different host.
a simple print `cmd.exe /c $loc_deploy`;
Will achieve what you want,` is a backtick which executes the quoted command in the shell and returns the output of the command.
The \\\\server\\pipe\\My Named Pipe incantation must be adjusted to point at the pipe you have created, eg. \\\\.\\pipe\\pipe1
|