Exactly what it says in the title. To obtain a command block to make this all possible, enter the following command inside the chat:
/give @p minecraft:command_block
(Link sends you to the wiki)
After that, just copy and paste the command below to obtain: The Sharp Shears Of DOOM