code: def fix_windows_command_list(commands):
      # type: (List[str]) -> List[str]
      
      fully_qualified_cmd_path = which(commands[0])
      if fully_qualified_cmd_path and (
              not which(commands[0], add_win_suffixes=False)):
          commands[0] = os.path.basename(fully_qualified_cmd_path)
      return commands
docs: Return command list with working Windows commands.
  
      npm on windows is npm.cmd, which will blow up
      subprocess.check_call(['npm', '...'])
  
      Similar issues arise when calling python apps like pipenv that will have
      a windows-only suffix applied to them