HomeyScript + Telnet

Is it possible to open a telnet connection in HomeyScript? I would like to send commands to an AVR that allows commands via telnet, but not http.

Telnet is possible @ homey, f.e. the Marantz app uses telnet, maybe you can get ideas from the code:

Question is (also) if it’s allowed to use telnet with HomeyScript.

Also found a js example here, maybe it gets you going:

It’s not.

(FWIW, we’re not talking about Telnet (a specific protocol) here, but regular TCP/IP connections)