Issue to run terraform in bamboo agent

As shown below, I’m attempting to execute a Terraform script on the Bamboo agent, but I’m facing an error that I’m having difficulty understanding:
I’m running the terraform apply through the docker
All TF files are in the right folder
Why is it complaining about double quotes ( " ") once that I didn’t pass any quotes in my docker cmd?

I have walked through some docs and internet regarding any issue similar to these but unsuccessfully.

I really appreciate your help and support

11-Dec-2023 17:11:23	+ docker run --rm -u root --volume /data/bamboo/sb-lnx-srv03688-agent-05/xml-data/build-dir/FPSOUZA-RLLTIOT31-JOB6-138:/data -e TF_AUTOMATION=yes --workdir=/data/source/unit_tests ${bamboo.container_agent}:817 ls -ltra
11-Dec-2023 17:11:23	total 6133584
11-Dec-2023 17:11:23	-rw-r--r--. 1 bamboo bamboo       1027 Dec 11 13:45 main.tf
11-Dec-2023 17:11:23	drwxr-xr-x. 6 bamboo bamboo       4096 Dec 11 13:45 ..
11-Dec-2023 17:11:23	-rw-r--r--. 1 bamboo bamboo        182 Dec 11 13:45 vsphere.auto.tfvars
11-Dec-2023 17:11:23	-rw-r--r--. 1 bamboo bamboo        420 Dec 11 13:45 vm.auto.tfvars
11-Dec-2023 17:11:23	drwxr-xr-x. 2 bamboo bamboo       4096 Dec 11 13:45 scripts
11-Dec-2023 17:11:23	drwxr-xr-x. 3 bamboo bamboo       4096 Dec 11 13:45 .terraform
11-Dec-2023 17:11:23	-rw-r--r--. 1 bamboo bamboo       3340 Dec 11 13:45 .terraform.lock.hcl
11-Dec-2023 17:11:23	-rw-r--r--. 1 bamboo bamboo       4661 Dec 11 16:10 sleshrd.tf
11-Dec-2023 17:11:23	-rw-r--r--. 1 bamboo bamboo        654 Dec 11 16:10 variables.tf
11-Dec-2023 17:11:23	drwxr-xr-x. 4 bamboo bamboo       4096 Dec 11 16:10 .
11-Dec-2023 17:11:23	-rw-r--r--. 1 root   root   6280739328 Dec 11 16:11 kairos.ova
11-Dec-2023 17:11:24	+ docker run --rm -u root --volume /data/bamboo/sb-lnx-srv03688-agent-05/xml-data/build-dir/ITPROJ-VIITIOT31-JOB6:/data -e TF_AUTOMATION=yes --workdir=/data/source/unit_tests ${bamboo.container_agent}:817 terraform apply 
11-Dec-2023 17:11:24	���
11-Dec-2023 17:11:24	��� Error: Failed to load " " as a plan file
11-Dec-2023 17:11:24	���
11-Dec-2023 17:11:24	��� Error: stat  : no such file or directory
11-Dec-2023 17:11:24	���
11-Dec-2023 17:11:25	/home/bamboo/bamboo-agent-home/temp/ITPROJ-VIITIOT31-JOB6-138-ScriptBuildTask-6413057284114795249.sh: 23: /home/bamboo/bamboo-agent-home/temp/FPSOUZA-RLLTIOT31-JOB6-138-ScriptBuildTask-6413057284114795249.sh: Bad substitution
11-Dec-2023 17:11:25	Failing task since return code of [/home/bamboo/bamboo-agent-home/temp/FPSOUZA-RLLTIOT31-JOB6-138-ScriptBuildTask-6413057284114795249.sh] was 2 while expected 0
11-Dec-2023 17:11:25	Finished task 'Script' with result: Failed
11-Dec-2023 17:11:25	Running post build plugin 'Docker Container Cleanup'
11-Dec-2023 17:11:25	Running post build plugin 'NCover Results Collector'
11-Dec-2023 17:11:25	Running post build plugin 'Build Results Label Collector'
11-Dec-2023 17:11:25	Running post build plugin 'Clover Results Collector'
11-Dec-2023 17:11:25	Running post build plugin 'npm Cache Cleanup'
11-Dec-2023 17:11:25	Running post build plugin 'Artifact Copier'