Perhaps you could try this from SSH console:
1) make sure your current script is executable:
2) test after resume from suspend if your script works:
3) if it works as expected, create the service which should run your script after resume from suspend:
Code
cat >/storage/.config/system.d/kodiresume.service <<'EOF'
[Unit]
Description=Kodi actions for resuming from suspend
After=suspend.target
Requires=kodi.target
[Service]
Type=oneshot
ExecStart=/bin/sh -c "exec sh /storage/.config/sleep.d/99-toggle_rate.power post"
[Install]
WantedBy=suspend.target
EOF
Display More
4) enable the service and test if it works:
I am not sure if it's error free but can't test it in my (different) environment completely. So it's up to you.