Is there a simple way to calculate how long your report takes to run and display it in hours, minutes and seconds?
The New-Timespan cmdlet can hep you with that.
See for example Powershell show elapsed time
I use simple measure-command.
A simple example how you can use the New-Timespan cmdlet
$start = Get-Date# Your code$duration = New-TimeSpan -Start $start -End (Get-Date)$duration.Duration()
OK great thanks