You can also tap the ⊞ Win button to do this.
You can also hold ⊞ Win and tap X to bring up the quick-access menu with Command Prompt in it.
If you’re using the quick-access menu, just click the “Command Prompt (Admin)” option. Do not use the regular Command Prompt option.
Replace the information in parentheses with an actual username and password; be sure to exclude the parentheses.
You will see a line that says “The command completed successfully” after successfully adding or removing an account.