protected boolean write(Script script) throws IOException, InterruptedException {
        if (script == null) {
            IllegalArgumentException iae = new IllegalArgumentException("The script object is null!");
            Main.handleUnhandableProblem(iae);
        }

        assert FileUtil.control(script.scriptPath());
        String cmd = CMD_ADDWITHSCRIPT + script.scriptPath(); // Runs the resource hacker with the commandline argument cmd
        return ProgramLauncher.start(this.reshacker.toString(), cmd, true, ERROR_IDENTIFIER);
    }