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