Vinit
If you have access to the source code, you can take the "F5" logic to the standalone program, which can be run for the range of sales orders.
If this is something, that you have to perform on a regular basis, you may also consider hiring a professional programmer to create this tool for you.
Regards
Max Viskov
Senior Consultant, 32Soft Inc.