I want to be able to send commands to AppleTV like emulating the physical remote control

Is it possible? without pairing via bluetooth? There is an alternative to it, via network requests? In either case, there's a documentation anywhere? I wan not able to find it out.