in reply to NET::TELNET to access Windows Servers

Using backticks is definitely wrong here. Backticks causes dir to run on your own machine, and the output of that dir is used as the command. 'dir' and "dir" are identical. Maybe it has to be "dir\n"? In any case, you should be looking beyond which quotes you are using.