$ 0 0 Thanks for the quick reply, here is the results of moving the variables to the script body. FYI, this is a PowerShell monitor.