I have a pi running hass.io and a second pi running a kiosk (page within local hass.io). Since the kiosk starts in full screen mode without a UI or physical keyboard, there is no way to restart/shut it off without SSHing into it remotely. I can do this from terminal, but I want to do this from UI to make it easier.
Then, with a script (using UI) I trigger kiosk_ssh, then kiosk_yes, then kiosk_password, then kiosk_reboot. If I type these commands in this sequence into terminal, it successfully restarts the pi, so I know my commands are correct.