Split Sales order with a script

SOLVED

Hello everyone,

I was wondering if anyone has been able to split a sales order into two separate orders based on line information using a script. Would something like that be feasible?