add the shell function of type and execute