You'll need to download or build an autounattend.xml file and place it on the root of the disc or usb with the windows installer. You can add the format commands in the xml file. This generally won't work license wise since only Enterprise licenses work on multiple devices. Everything else can be automated fairly easily.