The normal command block (id 137) works, but the GUI for editing its command doesn't work in 1.9-1.12 right now due to changes in Minecraft. It's quite useless though, since it can only run console commands at the moment.
Besides switching to 1.8, you can edit it by using plugins. I've attached an example plugin.
Besides switching to 1.8, you can edit it by using plugins. I've attached an example plugin.