'How to control presentation of Google Slides on second monitor from within Google Sheets which I'm editing

I'm trying to make a test in which I present images (google slides) to a person on a second monitor, while recording the answers in a google sheets file on my computer. I need to have a controller with NextSlide, PrevSlide and GoToSlide within the Sheets file. For me, it seems similar to what Remote for Slides does, but I couldn't figure out what the script should be. Any help would be highly appreciated!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source