The ability to refresh an extract that is located on the local machine through the command line is not built into Tableau Desktop.
Tableau Data Extract Command-Line Utility applies to Extracts published to Tableau Server or Tableau Online only.
You can automate extract refresh tasks using the Tableau Data Extract Command-Line Utility. This is a command-line utility that comes with Tableau Desktop, through which you can refresh published data sources or append data to them from a file.
The article below document how Tableau Data Extract Command-Line Utility works.
Tabcmd will work for tableau server and not desktop.
You open desktop and refresh your workbook.