This command runs on composer-cli. Have you installed it? If not, you can install it using:
npm install -g composer-cli
Now try and run the command. It should work.
If you have already installed composer, then uninstall and re-install:
npm uninstall -g composer-cli
or
npm uninstall -g composer
and then
npm install -g composer-cli