Nextcloud Docker Container - best way to run cron job

I setup Nextcloud on unRAID using SpaceInvaderOne’s tutorial. Sanctimon’s command worked for me using the “User Scripts” plugin, but I had to remove the user.

docker exec Nextcloud php /var/www/html/cron.php