[cookbook] Add API of shell()
[cookbook] Add API of shell_output()
[doc] minor fix
[cookbook] Add function annotation for shell() and shell_output()