Hue api v2 : how to get all the possible scene states to cycle through in javascript?

I would like to cycle through the scenes, for example when I click a button, going to the next scene and if there is no more scenes, to the first in the list


var itemName = "myItem"; // Name of item that corresponds to a hue scene string
//in the UI I can choose between different scene names

var item = items.getItem(itemName);

var logger = Java.type("org.slf4j.LoggerFactory").getLogger("org.openhab.model.script.Rules.ListCommands");

var options =     //how do I get the list of possible string values here ??
var scenes= options.map(option => option.value).join(", ");
logger.info("Possible scenes for item " + itemName + " : " + scenes);

thanks for the help!