I accidentally deleted my admin account
Hello, I accidentally deleted my admin account on my MacBook Pro and have not been able to do much. Starting up in single user mode with command + s then typing mount -uw / *enter* rm /var/db/.AppleSetupdone *enter* reboot does not work for me. After I set up the account I get an error saying that my account can not be named this. I press back but it will not let me change anything. I then restart my Mac and when I log into my main account I see that the account I had just made is there but is a standard. Is there any other way? Can you manually reset it to factory settings?
MacBook Pro (13-inch, 2017, 2 TBT3), macOS High Sierra (10.13.3)