Create a func w/ params from CommandAst