@Arturo-Gracia-Maqueda, your commands are stored in the commands.json file.
On Windows, that's C:\Users\(your user)\.TRIGGERcmdData\commands.json
You can also use the "Text Command Editor" to edit or copy/paste the text out of that file.
When you say the token doesn't work, what do you mean? Usually when you re-install the agent it will re-use your token from the previous install. That's in this file on Windows: C:\Users\(your user)\.TRIGGERcmdData\token.tkn