Simple answer: Create a program object on your Desktop/in your Drives folder/Where Ever you want and give it the Path and file name of the below script (file name usbeject.cmd, Path is wherever you keep it
/* USBEject.cmd */
/* Part of the "Nicki's USB Camera to Hard Disk Thingy" application */
/* run to Eject Removable Media either during to Refresh or at Exit of camera.exe */
'@Eject ' || Drive || ':'
When you copy the above script and save it put a blank line on the end ie Press the Enter key at the end of the '@Eject ' || Drive line.
The above script should popup a "What Drive letter" entrybox - just enter the drive letter and omit the colon ie M not M: - so it is not limited to 1 drive.
Hope that helps.