Its an urgent help needed?

I am working on windows and my bat file is calling some perl scripts so if i add embedded bin of chef in my path env it will not able to find windows command like set in perl script. But i when i remove it it will work fine… Any help if their is any way to mute or disable cygwin which is the real cause… For this error to happen or any other command to set env fully as windows env