The statement holds a good deal of truth. A law is a structured directive meant to govern an entire community, carrying formal authority and binding force. A command, by contrast, can be directed at either a group or a single individual, and often functions as a more general appeal or instruction.
In other words, every law is indeed a form of command, but not every command rises to the level of law. A parent telling a child to clean their room is issuing a command, not creating a law. It's the scope, authority, and formal structure that separate the two.