functions/private/New-CheckResult.ps1
function New-CheckResult { [CmdletBinding()] param ( $name, $type, $value, $check, $errorFlag, $level, $message ) $result = New-Object PSObject $result | Add-Member -Type NoteProperty -Name name -Value $name $result | Add-Member -Type NoteProperty -Name type -Value $type $result | Add-Member -Type NoteProperty -Name value -Value $value $result | Add-Member -Type NoteProperty -Name check -Value $check $result | Add-Member -Type NoteProperty -Name errorFlag -Value $errorFlag $result | Add-Member -Type NoteProperty -Name level -Value $level $result | Add-Member -Type NoteProperty -Name message -Value $message return $result } |