Can you provide an example where it is inconsistent outside of a command prompt?
That's not necessary to make the point. Windows has inconsistent behavior. Just accept it and move on. "Outside of a command prompt" is a meaningless distinction that you've raised solely to dismiss an otherwise valid point.