#Work out the current execution directory
$executingScriptDirectory = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
$CMTrace = $executingScriptDirectory + "\\CMTrace.exe"

# copy CMTrace to local computer
Copy-Item $CMTrace -Destination "$Env:windir" -Force