Ok, I finally have the command line giving me the value returned from the command executed in the `dir` part of your code. Someone had set the PERL5SHELL and it wasn't picking up the correct command prompt to run from. But I still can't get these lines of code to work properly.