Seems like there is an issue with the Invoke-ScheduledTask is not produce an output. I think this is due to a race condition between the Task being executed, and the ScheduledJob receiving/capturing the output. Instead of waiting for the ScheduledJob to complete, I'll make it wait for the task to be completed.
Seems like there is an issue with the Invoke-ScheduledTask is not produce an output. I think this is due to a race condition between the Task being executed, and the ScheduledJob receiving/capturing the output. Instead of waiting for the ScheduledJob to complete, I'll make it wait for the task to be completed.