Is there an actual form that’s submitting data to this script? And does the page with that form have the HubSpot tracking code installed on it? If you’re just running that as a standalone script there wouldn’t be a hubspotutk cookie to grab. Also, the hubspotutk cookie is generated by the HubSpot tracking code, so if the code isn’t on the page with the form that cookie might not be generated.