Scene Edit Detection crashes Premiere

I try to test the SequenceUtils performSceneEditDetectionOnSelection**.** But when I execute the following code Premiere (25.6.0 BETA) always crashes after Scene Detection and before cutting.

async function sceneEditDetection() {
  const project = await ppro.Project.getActiveProject();
  const sequence = await project.getActiveSequence();
  const selection = await sequence.getSelection();
  
  const success = await ppro.SequenceUtils.performSceneEditDetectionOnSelection("Apply Cuts", selection);
  console.log(success);
}

Somebody knows why?