The linked post (number 9) contains the solution at
External Content pastebin.comContent embedded from external sources will not be displayed without your consent.Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.
Looks like that will install a new service, and will trigger on any shutdown event (poweroff/halt/reboot). So something to consider with what is trying to be achieved.
This option would be nice to see as an enhancement to kodi-autostart.service passing a start/stop parameter to autostart.sh, but I guess the problem there is no way of knowing if the script is written for an argument.