#at the beginning of the script
$StartTime = (Get-Date)
#at the end of the script
write-host “Script ran for :”$([timespan]::fromseconds(((Get-Date)-$StartTime).Totalseconds).ToString(“mm\:ss”))
W for Windows :-)
#at the beginning of the script
$StartTime = (Get-Date)
#at the end of the script
write-host “Script ran for :”$([timespan]::fromseconds(((Get-Date)-$StartTime).Totalseconds).ToString(“mm\:ss”))