Execute a command multiple times, using all possible permutations of a set of parameters.