Question: are tv power cords in wall rated?
Answer: Of course it's illegal to run power cords inside walls. National Electrical Code 400.8 rolls through the things you can't do with cord, and it's mostly a list of schemes to use them as a substitute for the permanent wiring of a structure. Nope, just nope.