Put it in a mob spawned and it will work
Note: Minify the command to avoid issues :)
Notch Head
Hello
Withers Spawn egg
Yolo
Pet ENDER DRAGON!!!!!
Wither Storm Boss in ONE COMMAND
HEROBRINE COMMAND
HEROBRINE BOSS BATTLE (See YouTube for details)