There are situations when you need to check the availability of a particular port. Send commands and get an answer. This script can be used as a complete replacement for telnet. Only if telnet cannot be mistaken when entering a command, then it is possible here. It can also be easily edited and used for automatic hosts querying.