system("start $separate_command") and die $!,$?,$^E; #### use Net::Telnet(); $commandExecution = new Net::Telnet(Host=>$location, Dump_Log=>"debug.txt", Prompt=>'/C:\\\\>.*$/'); $commandExecution->login($username,$password); $commandExecution->print($separate_command); $commandExecution->waitfor('/.+$/'); $commandExecution->close;