I got a Syntax error when trying the above. My copied cURL format from the inspector looks like this:

curl "https://www.google.nl/maps/timeline/kml?authuser=1&pb=!1m8!1m3!1i2017!2i4!3i3!2m3!1i2017!2i4!3i3"
-H "Host: http://www.google.nl"
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0"
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8"
-H "Accept-Language: en-US,en;q=0.5"
-H "Cookie: NID=102= long string of code here;
SID= some code here;
HSID= code here; SSID= code here;
APISID= code here;
SAPISID=code here;
OGPC= code here;
OGP= code here;
DV= code here"
-H "Connection: keep-alive"
-H "Upgrade-Insecure-Requests: 1

How can I adapt it to make it work?