This actually needs two command blocks.
Note: Minify the command to avoid issues :)
#NiceHat
The death of the enemies.
Dogman
Waste Slots in Your Inventory Easily!
Pet ENDER DRAGON!!!!!
Wither Storm Boss in ONE COMMAND
HEROBRINE COMMAND
HEROBRINE BOSS BATTLE (See YouTube for details)