I've been working with Otter script for a bit now, and I'd like to execute C# code directly from one of my plans. I know I can execute PowerShell code directly using PSExec
, but is there an equivalent for C# like CSExec
or similar?
Here is the code I would like to run:
if (Directory.Exists($Path))
LonUtil.SendEmail("Path exists!");
else
LonUtil.SendEmail("Path does not exist.", false);