Now that I think about it, you referred the outputs as different transactions.
Just in case that you're not aware, a transaction can have more than one output addresses. An input can't be used in multiple transactions but you can "split" the bitcoins from one input to many multiple addresses in a single transaction. Most wallets does this automatically with change addresses.
You really don't need any script to split the coins unless you're looking for a way to make transactions automatically.
You are true.
But i am searching for automation.