if ($operation -eq 'stat') {
  if ($toolArgs.Count -eq 0) { Fail 'stat requires at least one path on Windows routes' 2 }
  [Console]::Out.WriteLine('TYPE BYTES SHA256 PATH')
  foreach ($raw in $toolArgs) {
    $path = Resolve-UnideskPath $raw
    if (-not (Test-Path -LiteralPath $path)) { Fail ('path not found: ' + $path) 1 }
    $item = Get-Item -LiteralPath $path
    if ($item.PSIsContainer) { [Console]::Out.WriteLine('dir - - ' + $path) } else { [Console]::Out.WriteLine('file ' + $item.Length + ' ' + (Get-Sha256 $path) + ' ' + $path) }
  }
  exit 0
}
