Sure, you can run scripts whenever you want!
Could you take a step back and describe the problem you’re trying to solve?