sudo crontab -e
Add line to file (here a python script):
@reboot python3 /home/pi/Desktop/exemple.py &
https://raspberrypi.stackexchange.com/questions/8734/execute-script-on-start-up
raspbian – Execute script on start-up was last modified: May 10th, 2020 by