Stuck in a loop

Recently as I was working on a friend’s laptop (Toshiba Satellite) and was restoring back to the factory defaults and thought I was stuck in a loop, I wasn’t. They system kept rebooting and saying, “Preparing your computer for first use”. Then it would boot into a Toshiba system customization in progress screen, this image: