The item ID for Battery in Subnautica is:
battery
Mobile power source.
The spawn code for this item is:
spawn battery
The item command will add this item to your character's inventory. The item command for Battery is:
item battery