Run bash script as root/sudo

I have two bash scripts on a Raspberry 4 with HA that should be executed regularly but need sudo (e.g. a urbackup call). They run in the terminal, but not as Home Assistant automation. The reason might be that they have to be started as root.

My question: Can I also use the /etc/periodic/daily folder for this? Or could I somehow run a script permanently on the RP that takes care of this automatically or can be controlled via a text file that controls Home Assistant? Unfortunately I’m not that fit in Linux