The question
Why do seemingly simple scripts fail after launch?
Where I'd start
Make failures visible, design for change and review the total time saved rather than just the first run.
This is an illustrative article preview, not a published article. Replace it with your full writing before removing the noindex directive.