In the bootloader, you'd use fastboot commands, so the fastboot drivers need to be set up correctly. If you can get the fastboot drivers configured, you should be able to restore to stock. You can...