$ 0 0 First, try changing the $start and $end assignments like this$start = (Get-Date).AddDays(-5)$end = (Get-Date).AddDays(-1)