Win Command Prompt looking for PhpUnit in the wrong directory

I know it sounds like the old trivial question, but it's not. After upgrading Apache, php and PhpUnit, when I call 'phpunit' in the command prompt, it returns this error message: Could not open input file: C:\Dev\WAMP\php56\bin\phpunit.phar

The point is, \php56\bin is the old php's folder. The new one is \php7\bin.

I've upgraded accordingly the PATH environment variable and the phpunit.bat script in the bin directory, and yet the shell keeps pointing somewhat to that old path and leaves me wondering where that old \php56\bin comes from.