how do i make run a function when a specifically named mob is at a certain health?

i want to add custom moves to a creature in minecraft to create a boss but i want some things to be triggered using the health like when its half way wither skeletons spawn like the bedrock boss

Continue to help post