How Can I Operate/access To A Function In Url?

I created a function in func.php that checks statuses of orders in DB and makes some changes according to the values. I want operate this function by using cronjob.



How can I operate/access to a function in URL?



Or should I use a different way to enable my code via cronjob?

Please check