Have you tried inspecting your PATH environment variable? Just run PATH in your cmd. It should contain: C:\ProgramData\ComposerSetup\bin and also C:\Users\Q c\AppData\Roaming\Composer\vendor\bin
Just some debugging steps to try:
Closing all command windows and reopening them - this will "refresh" the PATH.