The script should continue to flash the device right through to the end when it will reboot, or ask you to reboot. No user interaction is required during flashing.
If it does not continue from that point, maybe unplug it , power off or reboot to bootloader from the fastbootd menu and try again with another cable or another port on your pc.
This happened to me. I selected “Reboot to Bootloader” because the Iode Installer was stuck for 30 min, and now I’m stuck in a bootloop.
“bootloader is unlocked” warning then white Google boot screen for about 1 second.
I now can’t enter USB debugging.
Any thoughts?