I agree with daphnissov
But never the less, let me give a hint a least, because what you want, is exactly what i scripted a year ago (and it has indeed nothing to do with PowerCLI).
Get the latest update search + install:
$Update_status=(New-Object -ComObject Microsoft.Update.AutoUpdate).results
In addition, i also parse the file "c:\windows\softwaredistribution\ReportingEvents.log"
Compute uptime of the host:
(get-date) - (gcim Win32_OperatingSystem).LastBootUpTime | new-variable uptime
$uptime.days
$uptime.hours
Now if you're familiar with PS, you could take those lines and play around in order to achieve your goal (invoke-command, etc).
Hope it helps.