CAA question about ootb

Hi there,I am curious about how to use code to set input in v6 native commands.For example, when manually operating one command, you need to select a project template after clicking. Can I use code to select the project template for it?