nano commands.sh   

"Paste The Following And Save" "You Can Add Other Commands To The File, If You Like"

#!/bin/sh

sudo apt update && sudo apt upgrade -y
sudo rpi-update 
sudo apt autoremove 
sudo apt autoclean 

Now Run The Chmod:

sudo chmod +x commands.sh

To Run The commands.sh:

./commands.sh

Make A Dir:

mkdir logs

Edit Crontab:

crontab -e

And Add The Following Line To The Bottom Of The File:

0 10 * * MON sh /home/pi/commands.sh 2>/home/pi/logs/cronlog