The easiest method is to boot into Single User Mode using Command + S. Once the text stops scrolling by on the screen you should see a command prompt with the "#" symbol. If you don't see this, the press the "Return" key which should then cause it to appear on an empty line so you can type on it. Follow the instructions on the screen to enter two command which should be the following IIRC:
fsck -fy
mount -uw /
Now you will need to delete a file which tells macOS whether or not the system has already been configured. Use the following command:
rm -i /var/db/.AppleSetupDone
You will be prompted to confirm it is Ok to delete the specified file. Now type:
reboot
This will restart the Mac which should boot into Setup Assistant as if it has a fresh install of macOS. Go through the setup process to create a new admin user account. Once logged in, you can use the instructions I provided in the last post to correctly modify the original macOS user account name.
It is also possible to modify the instructions in the other previously linked instructions to use Recovery Mode to do the same thing. You will need to follow the instructions in that article for Recovery Mode up until the command you use in the Terminal app. You will need to use a modified version of the command, so use the following command in the Terminal which uses a slightly different path to the file since High Sierra does not have a "Data" volume like macOS 10.15+ (note that I'm using the double quotes option since it makes things simpler):
rm -i "/Volumes/Macintosh HD/var/db/.AppleSetupDone"