How to send binary file in script to write into flash

I have finally got my JTinyUSB from Olimex to work with LPC2103 development kit. I encountered only one problem, I could not figure out on how to select binary file to be flashed into ARM microcontroller. Is there a way to do this by passing argument ? so I can modify flash script as showed below

flash command-“batch”

adapted by Martin Thomas based on information from Dominic Rath -

sleep 500

halt

wait_halt

poll

flash probe 0

flash write 0 %dmain.bin 0x0

#or flash write 0 %d%f 0x0

#reset run

#sleep 500

#shutdown

#where %d is pathname for the file.

#where %f is filename for the binary file

Thank you

Dillip