Hi Syed,
Why don't you use Actions to create Billing Documents from Sales Orders.
You can configure the action settings to be processed using this option - "processing using selection report".
You can schedule a batch job for this action and this will create billing documents in the background based on batch job schedule.
Regards,
Siraj