So... if i dont research before post its a problem, if i research is a problem also...
Well, i used this udf in windows server 2012, windows 7, with the same script, also with your examples... But when i try in windows 10 doesnt work... maybe because autoit_chrome_native_messaging_host_install.exe... i dont know why but i tried in two different Windows 10 and doesnt work.