Xbox one power on/off or more

Hi.
I would like to integrate my xbox one x into the app but did not find useful info yet
May be someone can help me ? If I could only switch it on and off this would be interesting already. Found this https://github.com/Schamper/xbox-remote-power
but have no idea how to implement such thing into the app
Cheers