Powershell - 如何只显示今天的文件

Powershell - How to show only today files

我正在处理这个小脚本,它显示了 Veeam Software 作业的最新数据。

$today = (get-date).Date
(Get-VBRBackup | where {$_.info.jobname -eq "A. ProduccionInterna.Infraestructura"}).GetAllStorages() | select {$_.PartialPath}, {$_.Stats.BackupSize/1GB}, {$_.CreationTime.Date -eq $today} 

但它向我展示了所有现有结果,而不仅仅是我感兴趣的最后一天的结果

感谢帮助

$today = (get-date).Date
$backup = Get-VBRBackup | where {$_.info.jobname -eq "A. ProduccionInterna.Infraestructura"}
if ($backup) {
    $backup.GetAllStorages() | where {$_.CreationTime.Date -eq $today} | select {$_.PartialPath}, {$_.Stats.BackupSize/1GB}
}