Current shell error with edeliver

That would have been great but I don’t have a sound knowledge of how to achieve that. Please do you have any script you could share?

Thanks immensely @OvermindDL1