This has happened 3 times already on different computers. When I send the "Wipe Computer" command, it asks for a 6 digit code which I put into the device to be wiped, but then the hard drive fails and I have to reinstall the OS manually.
The Wipe Machine command erases all data on the machine.
If you'd like to wipe the data and have a fresh OS, you should utilize the startosinstall ‑‑eraseinstall command that comes bundled in macOS installers.
Deploy macOS installer to machine.
Run this command:
'/Applications/Install macOS Catalina.app/Contents/Resources/startosinstall' ‑‑eraseinstall --agreetolicense --forcequitapps ‑‑newvolumename 'Macintosh HD'