Use command and find out. Also, to actually use, ( if you already didn't know ) , you gotta obtain a command block. And to do that, do the following in your chat:
/give @p minecraft:command_block
After you do that, just copy and paste the command into the command block. Enjoy :)
Also, this is a WIP. So if it crashes your game, or if it doesn't work, contact me and I'll fix it.