you can save the ocean script from your ADEXL window after naming all variables you want to plot or save, then run it from the command line in the log window using "load()" and wait until the simulation is done, then you can use "ocnPrint(some arguments)" command, google it for more help to specify the output file and the variables to be saved.
you can also add the commands in your ocean script file to be executed automatically in the file execution process (the load() command) to save more time, more smart work is to create a script running all your ocean scripts one after one if you have multiple scripts