a command that gives you a sign that says what you want then when you click activates a command
example:
/give @p sign 1 0 {
BlockEntityTag: {
Text1: "{\"text\":\"I WILL GIVE YOU A COMMAND BLOCK\",\"color\":\"red\",\"underlined\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/give @p command_block 1\"}}"
},
display: {
Name: "Custom Sign"
}
}