Checks for a shell and passes commandline arguments