I have the following PowerShell script that I want to use in a monitor. Works fine when I run it but need to figure out how to get OpManager to connect to the remote log.
$LOG = "\\appserver\c`$\app\logs\InfoLog.log"
$String = Select-String -Path $LOG -Pattern 'INFO: Time to Process Event:'
[TimeSpan]$Run = ($String[-1] -split "Time to Process Event: ")[1]
$Run.TotalMinutes