Error on archive script using command prompt to test

ERROR [2020-02-27 19:56:05] 9116 Empty or invalid response 'Got invalid response from API request: https://mysite/matomo/?module=API&method=API.get&idSite=1&period=day&date=last47&format=php&trigger=archivephp&token_auth=removed. Response was 'curl_exec: Failed to connect to mysite port 443: Timed out.

Hello I have a question not sure why I get this response or where to add the authorization token in order to archive. If I run the above call to the API adding the token authorization provided in my Matomo site in Postman I will get results. Not sure how can I pass it when I run it from the command prompt or actually from my task.

c:\PHP>php.exe “C:\WebApps\matomo\misc\cron\archive.php” --url=https://mysite/matomo/

Any help would be very much appreciated.

Thank you

PQ