code: private FilePath createWrapperScript(FilePath tempBinDir, String name, String content) throws IOException, InterruptedException {
          FilePath scriptFile = tempBinDir.child(name);
          envOverride.put(MVN_CMD, scriptFile.getRemote());
  
          scriptFile.write(content, getComputer().getDefaultCharset().name());
          scriptFile.chmod(0755);
  
          return scriptFile;
      }
docs: Creates the actual wrapper script file and sets the permissions.
  
  @param tempBinDir dir to create the script file
  @param name       the script file name
  @param content    contents of the file
  @return
  @throws InterruptedException when processing remote calls
  @throws IOException          when reading files