1. Copy the Command from the website
Click on the command to highlight it, right click, and then select Copy.
2. Get yourself a Command Block
Type "/give @p minecraft:command_block" in chat and then press Enter
3. Put the Command into the Command Block
Place down the Command Block, Right Click on it, then press Ctrl+V (or CMD+V) on your keyboard to paste in the Command, then click Done
4. Power the Command Block
Now just place a Redstone Block next to the Command Block
5. Have fun!