To change your name throught the console simple opent he console by hitting the tilde key (~) or whatever it's set to and type the following:
/toggle name YourNameHere
If you put any bad symbols you will get a message from a game and you will be named Unknown Solider!