@andreas.paul said in Invoke hostinfo.php from powershell:

Im intrested in the option to query the database direct, do you have any snipped for this?

I’ve only done it with BASH, it’s easy in bash. Here’s an article about doing it in powershell. All I did was google-search “powershell query mysql” and there’s tons of results.
http://www.thomasmaurer.ch/2011/04/powershell-run-mysql-querys-with-powershell/