Remote control programming - DirecTV

I am attempting to connect the On-Off function for my TV onto my DirectV remote control. I identified the correct brand of TV & was able to get my remote control to turn it on, but whenever I try to turn the TV off, it automatically turns back on even with the DirecTV signal turned off. The TV also will turn off with its own factory remote control, but will turn back on automatically. The TV now simply will not turn off and stay off!

This question, "Remote control programming," is about DirecTV channels, programming, equipment, and sports.