Trying to start/stop Kodi via script

Ok, to avoid confusion the direct link to topic is [HowTo] Start/Stop Kodi with your remote (headless mode)

Let’s test step by step. Does /home/osmc/scripts/mediacenter stop stop Kodi?