I can do this but this is not the real problem here.
In this topic i posted a Powershell version of the update check script.
But also with this script you need to make the cache configuration.
What i do at the moment on some servers is not to check if there are updates available. I check what update was last installed and you can filter unwanted updates and so on.
This is better in environments where you cannot have a WSUS or internet connection.
This can be something what @simon-mueller wants instead of checking the WSUS.