I don't think that is necessary when using ConsoLite. After the script kills the boss, and at the end of your script, put:
a_delayed 120 a_if a_var_is_quest_ranking_shown == "1" "a_boat_replay"
a_delayed 135 a_exec ros.txt
Of course the delayed will be different, depending on the map, and the .txt name will be different, but it will replay the mission.