code: def run_netsh_command(netsh_args):
      
      devnull = open(os.devnull, 'w')
      command_raw = 'netsh interface ipv4 ' + netsh_args
      return int(subprocess.call(command_raw, stdout=devnull))
docs: Execute a netsh command and return the output.