I've written a small Java app that includes checking the ChromeDriver version for automation tests, but as ChromeDriver does not report the version number in the metadata and can only be retrieved in Powershell using 'chromedriver.exe --version', I'm attempting to send this as a command to Powershell but get the error - "The term 'chromedriver.exe' is not recognized as the name of a cmdlet, function, script file........".
I assume that this because it is not a recognised Powershell command as 'Get-Command' or 'Get-Item' would be for obtaining the version number.
How does this need to be sent for it to report on the version number?
I have also tried used the BufferedOutputWriter and PrintWriter to send it just as text, but get the same issue.