Creates a function that is a command function with a baked commandName. This is also nice because you get TypeScript type support using this function.