Want to know the execution time of a script

workflow media {

Suspend-Workflow
Checkpoint-Workflow

Get-ChildItem c:\windows -include

.avi,.m4a,.m4p,.m4v,.mobi,.mov,.mp3,.mp4,.mpeg,.mpg,.VOB,.wav,

.wma,.wmv -recurse |
select Directory,FullName,CreationTime,Length |
Export-Csv media.csv |

}


In addition, need a csv output in every suspend mode.

IIRC, Measure-Command {yourscript here} will do it