CMD
reads the system environment variables when it starts. To re-read those variables you need to restart CMD
.
As for the variable %USERNAME%
: that variable is automatically populated with the username of the currently logged-in user. You'd have to change the username to change the value of that variable. Don't tamper with it.