added pass_to_shell function needed for application portal.