wsus update

since the changeing of reading wsus log file ineed a simple script to run with powershell that describes the last updates that installed or failed to install which relate it to a txt file with computer names or direct to the Active Directory.

can some one help me?

This may get you started:
https://blogs.technet.microsoft.com/heyscriptingguy/2012/01/22/use-the-free-poshwsus-powershell-module-for-wsus-administrative-work/