The whatIs command returns a string indicating whether the argument is a command, a procedure, a script, or is unknown. If you give it a script name, it will return the path of the script.
This is useful if you suspect that Maya is using the wrong script and you want to double-check.
whatIs test.mel; // Result: Script found in: ./test.mel //