Ajout WriteWithColor and if command is empty