Modern HP laptops require different environments depending on their age. Older legacy models (pre-2016) use FreeDOS, while modern UEFI-based systems require a Windows Preinstallation Environment (WinPE) or a specialized UEFI shell tool.
Once inside the DOS command line, you need to execute the main branding program. hp dmi tool bootable usb