The functions available to the utils object changes depending on which script type is being used.  utils.log(), however, is available on all script types. 

Here are the script type dependent utils functions.

Cartonization:
.getOriginalCartonList() - returns the original Carton list being passed into Cartonization.
.setOutputCartonList(cartonList) - sets the list of Cartons that will actually be used by Cartonization.
.setShouldRunCartonization(true/false) - sets if Infoplus should run its internal Cartonization.
.cartonizationOutput() - Get the current Cartonization Output.
.createNewContainer(cartonId) - Adds a new Carton to the current Cartonization Plan and returns it.

External Shipping System
.getShippingSystemObject() - returns the original object that was going to be sent to external shipping system.
.getOrderList() - returns the list of Infoplus Order objects corresponding to the order information being sent to the external shipping station.

Finance System Connection
.abort(reason) - stop the import or export process, for the specified reason.

Invoice Worksheet

.getInvoiceWorksheet() - returns the Invoice Worksheet object which is the header record for all Invoice Worksheet Lines.
.getInputEntities() - returns the list of objects that were used for calculating the data in the orignalLines.
.getOriginalLines() - returns the list of Invoice Worksheet Line objects that were generated and would have been added to the Invoice Worksheet if no script was specified on the Invoice Template Line.
.getInvoiceTemplateLine() - returns the Invoice Template Line for which the original lines were generated.
.setOutputLines(invoiceWorksheetLineList) - sets the list of Invoice Worksheet lines that will actually be used for the Invoice Worksheet.

Shopping Cart Connection Order
.stringToJson(s) - convert given string to JSON object.
.rejectDocument(reason) - stop processing a document from within a script for specified reason.