Discover the hidden feature in DietPi that allows you to automate your Raspberry Pi setup with a single script.
You will need to use the stuff in the /etc/init.d/functions file, specifically the deamon() function I think.
If the GPO Startup Script is not running, then this post may help. A Group Policy Object (GPO) Startup Script refers to a script or batch file configured to run automatically when a computer boots ...