Can you run scripts pre/post backup?

Sure, you can run scripts whenever you want!

Could you take a step back and describe the problem you’re trying to solve?