after thinking, I decided to echo the path
$output = shell_exec('echo %Path%');
$logger->log($output);
And the path to wkhtmltopdf
, that I have added was not there. So I restarted apache, and it didn't work, so I restarted windows and it worked.
The good old restart :)