How to input a script in Ruby Console

I just asked this question to ChatGPT and unexpectedly it gave me a solution that works (or seems like). :upside_down_face:

The command needed to input the script in the Zammad Rails Console is:

sudo zammad run rails runner -e production 'load "/route/to/your/script.rb"'

I just needed to create an bash script that calls the rb script and put it in the crontab. It should work properly.