Steven Shiau - 2022-11-07

You can use boot parameter ocs_postrun to assign the file to be run:
https://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.doc
As for where to store this file, it depends on the media which you want to put, and how you mount it.
If it's in USB flash drive, normally the path "/run/live/medium/" after booting Clonezilla live is corresponding to the root of your USB flash drive. You can try to put the file in the root on your USB flash drive and set, like:
ocs_postrun2="bash /run/live/medium/copyfile.sh".
However, I believe you need more ocs_postrun* to mount the partition which you want to access the files.

Steven