I can not schedule task windows every day to execute each 1 minute. Power Shel 5

$A = New-ScheduledTaskAction -execute "powershell" -argument "-nologo -noprofile -noninteractive C:\Server\monitora_servidor.ps1"
$hourly = (New-TimeSpan -Minutes 1)
$dt= ([DateTime]::Now)
$duration = $dt.AddYears(25) -$dt;
$T = New-ScheduledTaskTrigger -Daily -RepetitionInterval $hourly -RepetitionDuration $duration
Register-ScheduledTask -TaskName monitora_servidor_1 -Trigger $T -Action $A -description "SCRIPT_VERIFICA_SERVIDOR" -User "NT AUTHORITY\SYSTEM" -RunLevel 1
Set-ScheduledTask monitora_servidor_1 -Trigger $T
# show this error message:
<pre class=""tw-data-text"><span>New-ScheduledTaskTrigger: The parameter set cannot be resolved using the specified named parameters.
No line: 5 characters: 6
+ $ T = New-ScheduledTaskTrigger -Daily -RepetitionInterval $ hourly -Re ...</span></pre>

Hi vpmaciel67
Not sure as to what exactly you want to accomplish. Perhaps remove -Daily and execute them hourly? You could take a look at the new-scheduledtasktrigger examples and see if anything matches your goal.

I agree with Emil, I think you have a conflict in using both Daily and setting a repeat interval of one minute.