To format a hard drive before you start using it in Windows, use the Disk Management utility; on a Mac, use Disk Utility.
If you're building a new workstation or gaming PC or acquired a device that doesn't have an operating system, you will have to install Windows 11 manually. Although if you have never done it before, ...