def source_cmd(args, stdin=None):
args = list(args)<EOL>fpath = locate_binary(args[<NUM_LIT:0>])<EOL>args[<NUM_LIT:0>] = fpath if fpath else args[<NUM_LIT:0>]<EOL>if not os.path.isfile(args[<NUM_LIT:0>]):<EOL><INDENT>raise RuntimeError("<STR_LIT>" % args[<NUM_LIT:0>])<EOL><DEDENT>prevcmd = '<STR_LIT>'<EOL>prevcmd += '<STR_LIT:U+0020>'.join([argvquote(arg, force=True) for arg in args])<EOL>prevcmd = escape_windows_cmd_string(prevcmd)<EOL>args.append('<STR_LIT>'.format(prevcmd))<EOL>args.insert(<NUM_LIT:0>, '<STR_LIT>')<EOL>args.append('<STR_LIT>')<EOL>args.append('<STR_LIT>')<EOL>args.append('<STR_LIT>')<EOL>args.append('<STR_LIT>')<EOL>args.append('<STR_LIT>')<EOL>return source_foreign(args, stdin=stdin)<EOL>
Simple cmd.exe-specific wrapper around source-foreign.

    returns a dict to be used as a new environment