def create_forwarding_script(filepath, module, func_name, *nargs, **kwargs):
doc = dict(<EOL>module=module,<EOL>func_name=func_name)<EOL>if nargs:<EOL><INDENT>doc["<STR_LIT>"] = nargs<EOL><DEDENT>if kwargs:<EOL><INDENT>doc["<STR_LIT>"] = kwargs<EOL><DEDENT>body = dump_yaml(doc)<EOL>create_executable_script(filepath, body, "<STR_LIT>")<EOL>
Create a 'forwarding' script.

    A forwarding script is one that executes some arbitrary Rez function. This
    is used internally by Rez to dynamically create a script that uses Rez,
    even though the parent environment may not be configured to do so.