To safely shutdown Windows 10 during first-run setup:

  1. Press Shift+F10 to access Command Prompt.
  2. Type shutdown /s /t 0 and press enter.