To install Telnet on a Windows computer from the command prompt,try the following:
pkgmgr /iu:”TelnetClient”
Once Telnet is installed, you can test functionality/connectivity to a port such as 3389, using this command:
telnet <Server Name> 3389
Source: Install Telnet Client