Xbox one power on/off or more

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
but have no idea how to implement such thing into the app