I use this script to register a scheduled Task
$Trigger= New-ScheduledTaskTrigger -At 7:01am -Daily
$User= "NT AUTHORITY\SYSTEM"
$Action= New-ScheduledTaskAction -Execute "PowerShell.exe" -Argument "-File D:\scripts\Get_Stuff_DO_Stuff.ps1"
Register-ScheduledTask -TaskName "TASKXYZ" -Trigger $Trigger -User $User -Action $Action -RunLevel Limited –Force
The business require a second trigger added at 7:01pm, therefore my question how to add a second trigger to this task. Many thanks String