There is no on or off command on roku. If you power it by tv usb port, when tv is off the usb port goes off? Use switched outlet on power strip? Old fashion, plug it into a x10 RF transceiver, power it off with a x10 key fob.
Or better yet just leave it on all the time, like the rest of us.
Edmund Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution." If you appreciate my answer, maybe give me a Kudo.