There is a complication when using a config.yml file that contains a bash script.
The circleci parser is looking for things like “<< pipeline.parameters.ACCOUNTS >>” so that it can perform substitution of the value for the placeholder. So the “<<<” starts this process and results in an error.
So it would be worth trying the idea put forward in the post I linked to as it may work.