This script creates Geographic Address Groups on a Fortigate firewall. Why Fortinet has not just included this, I don't know.
codejake/fortigate-create-country-groups
This script creates country groups on a Fortigate firewall so you don't have to do it by hand in the GUI.