It's a string.
Since this is a web application, I'm going to try a C# approach to running a PS script. It seems like the problem revolves around the Task Scheduler so I'll get that out of the way. In the past I've struggled with authorization when running PS from C# so that may be my next battle. I should be able to report back sometime tomorrow with my findings.