The cron job scheduling is weird. I’ve tried to explain it in this article:
As far as you action goes, it depends. The cron job calls a specified URL at the specified schedule. This can be any URL on your website. It’s a GET request, not POST, and doesn’t interact with your website HTML code. So it can’t “click the button”, but it should be able to trigger the same actions as clicking the button would do.