As late as it is, there is still some useful insight to be explained here.
adb reboot
is not only different from hitting the power button, it's also different than hitting the power button and then clicking on restart from the menu.
input keyevent 26
only locks the screen, because it is a quick tap on the power button. You'll have to go with sendevent /dev/input/eventXXX [...] & sleep 1 & sendevent [etc]
in order to long-press the power button from adb, just as documented in your link.
adb reboot
is completely different in that it immediately restarts the device. It is also different from rebooting from the power menu because adb reboot doesn't close apps, disconnect from the cell towers, or show the shutdown animation, it immediately kills the device like a battery pull.