Change name of button when toggling, based on output of a script with support for a default in case the output is invalid.
Change name of button when toggling, based on output of a script with support for a default in case the output is invalid.