Attempting to create a dashboard which passes some selected criteria and script parameter into a New-PSUSchedule command on button click event. I am able to create the schedule via the admin console, though get a “Sequence contains no matching element” error when attempting to run the command via powershell or via the dashboard:
I tried to enable debug level logging, but did not see anything jump out in the log file. Also the same generic event is logged in windows event logs for PS core. I included outputs in my scripting to validate the variables getting passed to the command via the dashboard are getting populated, any thoughts?