Add with_retcode options for ShellCase functions