Support lambdas in module commands