Getting nested layers bound using alchemist

Hello all,

I’m trying to get all layers and nested layers bound using the alchemist code

const {executeAsModal} = require("photoshop").core;
const {batchPlay} = require("photoshop").action;

async function actionCommands() {
   const result = await batchPlay(
      [
         {
            _obj: "multiGet",
            _target: [
               {
                  _ref: "document",
                  _id: 59
               }
            ],
            extendedReference: [
               [
                  "bounds"
               ],
               {
                  _obj: "layer",
                  index: 0,
                  count: -1
               }
            ],
            options: {
               failOnMissingProperty: false,
               failOnMissingElement: true
            },
            _options: {
               dialogOptions: "dontDisplay"
            }
         }
      ],
      {}
   );
}

async function runModalFunction() {
   await executeAsModal(actionCommands, {"commandName": "Action Commands"});
}

await runModalFunction();
but not able to get is there anything need to change?
if i run the UDT debug window got un defined:
![image|347x127](upload://jLt3Oumq4Ph8Uvte4YwjSGJxec7.png)


Make sure to change document ID.