The script has not been executed in a CLI mode which is required for the script to run properly.
Note that CLI does not have any timeout limitation which may break synchronization of bigger data sent to MetricsCube.
Please open your command line and run the below command to execute this script in a CLI mode:
Important! The above directory is an example, please replace it with a full directory of the file on your server.