There are two ways for you to get a job like that square, I suggest.
You can file or grind the duff edge, testing as you go with straight-edge and square, until it is straight and at right angles. This takes time and skill. The more skill you have the less time it takes, and the bigger the workpiece at the end.
Or, you can set it up in a mill or similar machine which has faces made at right angles, and then the machinery will produce what you need fairly quickly and without much waste.
So, if you have insufficient skill and no capable machine it would be worth joining a model engineering club. They may have a member or two who wants to pass on his skill to the next generation. Alternatively, there may well be a firm near you which can help using their machinery. By the time you have needed their help for three or four jobs it may occur to you that you would be better off spending some money on a mill (etc) rather than paying someone else to use theirs. That's what I did, anyway.
Regards, Tim