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.