in reply to [Solved]: cpan fails when MKS installed on Windows
Also…
set TERM=ansi
…or some such.
But as you've already learned, your problem is solved with just…
set SHELL=