How to enable Card Button Automation when creating a board

I have a Trello board that is used as a template to create other Trello boards and pre created Card Button automation scripts that are enabled on the template board.

However, when a the new board is created from the template the Card Button scripts are not enabled and need to be enabled manually.

I have looked through the API but couldn’t find anything around automation but does anyone have a way to enable the the scripts for the card buttons through the API?