in reply to How do I communicate with a Windows process?

netstat is a windows command, you can use it from the command line, so you just have to use back ticks and it will work without a cmd window or anything else

my $cmd = `netstat -a -e -n -o -s -r`; print $cmd;

You might want to use the full path for the netstat command.