Simple way to make an autoexec using Automate.
Requires "Boot On Startup" to be enabled.
I am not responsible for any damage that this flow may cause. If you somehow manage to write a command line that makes your phone unusable, use Android Safe Mode. Not sure what IOS uses but it should be the same.
Rate and review within the app in the Community section.