How to start Splunk Forwarder within a script

I would love to start to display our dockers with Splunk. To do it I need to feature it to the docker buildfile.

the problem is that if its the first time you begin the forwarder, it activates you to agree for the license settlement, which breaks the script.

Is there a way to start the Splunk forwarder without being triggered?