There are commands to do all of that, namely troop_set_name/troop_set_plural_name and troop_add_items/troop_remove_items.
Changes to troop inventories aren't stored in saved games, though. I don't know about changes to names.
Changes to troop inventories aren't stored in saved games, though. I don't know about changes to names.