Hello!
If you try to do it in one go, the program will probably freeze.
Try to distance the bets by several seconds, for example:
You can use the attached trigger file as a template.
P.S.
Beware of the transaction limit that BetFair imposes on your account (1000 transactions per hour by default).