Telnet allows you to submit commands over the network in plain text. It was used to execute sHell commAnds on remote computers, but this usecase has been superceded by ssh which protects passwords by encrypting the communication.
For executing shell commands on remote computers, use ssh, not telnet!!!
Telnet is still good for