Not sure if this belongs in stackoverflow as it relates to PowerShell, but posted here as it isn't scripting and is more server task related.
I am trying to recreate a task we have on our old file server, as a Clustered task on our new failover cluster.
In order to do so, I need to set the action and trigger, as variables to pass to New-ClusteredScheduledTask. The action I have done without issue, but I am not sure how to run New-ScheduledTaskTrigger to correctly have it set to the last Tuesday of every month.
I can see there are Daily and Weekly switches, and also WeeklyInterval, but I don't want to rely on weekly intervals as that won't always fall on the last Tuesday of the month?
Can anyone advise how to recreate this trigger using a combination of the available switches and values?