Créer une tâche planifiée

PS1> $action = New-ScheduledTaskAction -Execute 'mon_script.bat'
PS1> $trigger = New-ScheduledTaskTrigger -AtLogOn
PS1> Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "Nom Tache" -Description "Description de la tache" -User "DOM\User" -Password Passw0rd