כיצד להריץ קוד בצד השרת בלחיצה על כפתור?

I want execute the code inside file Jobs/Secheduled/test_job.rb

Or you can say I want to run a cron job.

Can you please show me an example code how can I make ajax request to an endpoint and execute the code inside the file.