In Qgis divide your shapefile into countries by country ID with: Vector > Data Management > Split Vector layer
Change into the directory with the 170 shapefiles and use topojson commandline to directly convert to topojson:
Linux/Mac
for f in *.shp; do topojson -o `basename $f .shp`.json $f; done
Win
for %f in (*shp) do topojson -o %~nf.json %f
PS. You might consider posting GIS related questions on https://gis.stackexchange.com/