Android 11 autostart script

I have a script to control GPIO on 4 C plus that I can start by:

adb shell
su
sh myscript.sh

But how can I make it autostart, I have only used init.d and systemd before. How can I autostart it in Android 11.