Hi there Peter
I've tried Joe Pie's method of making a square broach, it works a treat but it is fiddly. I made it to make a plastic part in the innards of a Lister sheep shear which has a 5 mm square hole in the centre to drive the flexy spring drive shaft. I made the part out of acetyl plastic. Hence I didn't harden my home made broach but it worked just fine..
To cut steel the raw broach will need hardening, which may warp it and certainly affects the surface finish. I guess one can heat treat it while in a boric acid bath a la Clickspring which will help reduce the surface finish problem. However, having it warp would make it unusable, as it will be brittle from hardening (even it it's tempered back a bit it still needs to be pretty hard) and it's absolutely vital to be able to push straight on a push broach else it will just shatter. The "necks" of the gullets are awful small (= fragile) at this size.
Which leads me to comment three. I have had no luck at all trying a 1/4 inch sq broach in a normal bench vice – you can't get the force you need which is more than ever you'd imagine, and a vice won't push straight. You also need to take several bites at it to make sure the broach is setting square against the push face. I don't have an arbour press, I do it with hydraulics, but I've followed some on Youtube who have tried it with an arbour press and been surprised at the force you need. It's also only too easy not to push the broach through at right angles to the part, so the hole is skew-wiff. It's very much easier to get everything in line and acting straight if gravity is helping you rather than hindering. I recognise that 5 mm must be easier to push than 1/4 inch, but I still think you're on a hiding to nowhere trying to do this job without a hydraulic press.
I recently bought a second hand 5 mm square broach on ebay. – to supersede my home made (unhardened) broach for making the spares for the sheep shearing rig. New they are about £120 a pop, I paid about half this for a secondhand one which visually looks the business but I haven't tried it yet. It looks awfully fragile! From memory the pilot hole is 5.3 mm, so you end up with a square in a circle – or a circle with corners if you like. If this is of use to you PM me and we'll work out something. No promises of success – if I break the broach then I can't replace it. Did I mention it looks awfully fragile?
But it's gotta be better than filing each one individually. What tolerance on orientation of the square have you got to keep? The broach cuts the square corners dead to size, but there is the question of the slightly oversize pilot hole which may be problematical.
If you'd like to take this further leave a message here to say there is a pm to find – I check the forum most days but only log on if I need to, so I may miss the little black envelope icon.
HTH Simon