How can I write values to a CSV file from Katalon Studio

Please find a sample code at Is there a way to populate an excel spreadsheet with the elapsed time of a single step - #7 by kazurayam