Use Apple TV remote to turn on and off soundbar with IR
I have a soundbar which does not have HDMI. I need the Apple TV remote to turn on the soundbar when I use the power button on the remote, and same thing to turn off the soundbar when I turn off the Apple TV. Please tell me how to set this up. It should not be this difficult to get my Apple TV to work like the fire stick I just replaced, for which the setup was seamless. Thanks for any help.
Apple TV 4K, tvOS 18