Revert "Revert "added shell function that uses telnet lib""

This reverts commit 2cef0a9394bd44449056c0efdcf2cb46806f7e02.