…though as @Chris has pointed out elsewhere, scripting isn’t necessary to make this happen because these two devices support associations.
That leaves unanswered the question of how to get the state of the unit after a scene command is received, though, which is useful beyond the linking discussion which started this topic.
(Don’t ask me how to use associations. I don’t have any units which support association (yet). )