Building an automated benchmark tool

You can use some existing commandlets or some custom ones you can write yourself.

There is a way to rebuild DDC from command line Easy way to force Compile all Shaders?
There is also ways to run cook or build commands from command line
Build lighting from command line

the links are a bit old but that is the direction you should look into