>>541
@(
"C:\dir1"
"C:\dir2"
) | %{
  $prop = [Ordered] @{Path=$_}
  $file = @(Get-ChildItem -LiteralPath $_ -Force -Recurse -File)
  ([Ordered] @{LastWriteTime='Maximum'; Length='Sum';}).GetEnumerator() | %{
    $opt = @{'Property'=$_.Key; $_.Value=$true;}
    $prop += @{$_.Key = $file | measure @opt | select -exp $_.Value}
  }
  [PSCustomObject] $prop
} | ConvertTo-Csv -NoTypeInformation