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