Forgot that forEach cannot be use on an object, used Object.keys to fix the problem. Slightly less readable, but it works like a charm!
Streamlined command creation to an object and function with single point of change.
Not a working build, but I wanted to get this on my github.