This is a powershell script that has two main purposes:
- set up the system path environmental variable for ChromeDriver.exe to be able to run this from whatever location (Needs admin access rights for that)
- get the corresponding version of Chrome driver for the installed Chrome browser
You can supply a directory path if you don't want to use the default one: "C:\WebDriver\bin\"
Credits: Based on Aleksei Kharlov aka halex2005 script: https://www.codeofclimber.ru/2019/getting-chromedriver-updates/