Shapefile to gmt (python)

I don’t have the gmt shell, I’m working on a windows computer, so I run the command you provided in OSGeoShell (the shell that QGIS provides) because according to a forum solution this is supposed to work…