working on this, I Have a very odd issue, the hotfix is only giving me back one result instead of all the hotfixes it just gives me the first one in the array, this is what the script looks like so far
$inputobject = Get-hotfix -ComputerName SERVERNAME |Where-Object{$_.InstalledOn -eq '4/18/2015 12:00:00 AM'}
Select-Object Desription, HotFixID, InstalledOn
foreach ($object in $inputobject)
{
$dataObject = $ScriptContext.CreateInstance("xsd://foo!bar/baz")
$dataObject["Id"] = [String]($object.Message)
$dataObject["PSComputerName"] = [String]($object.PSComputerName)
$dataObject["Description"] = [String]($object.Description)
$dataObject["HotFixID"] = [String]($object.HotFixID)
$dataObject["InstallDate"] = [String]($object.InstallDate)
$dataObject["InstalledOn"] = [String]($object.InstalledOn)
$ScriptContext.ReturnCollection.Add($dataObject)
}
Full Disclosure some of this code was bastardized from http://blogs.technet.com/b/stefan_stranger/archive/2014/05/19/powershell-grid-widget-helper.aspx Using Stefan's powershell-grid-widget helper.