Set the Telenet object ($t) prompt to ">", before the cmd method
Use "dir" instead of "ls" - M$ likes that better
Have you considered using "rcmd" from the Server resource kit (not sure if it is still supported, but this lets you run commands remotely, and get responses at originating machine).