$timeInterval = New-JobTrigger -Daily -At "0:30 AM" -DaysInterval 3 $scriptPath = "c:\Users\admin\Documents\vmbackup\backup_vm_intranet.ps1" $options = New-ScheduledJobOption -RunElevated Register-ScheduledJob -Name BackupVMIntranet -FilePath $scriptPath -ScheduledJobOption $options -Trigger $timeInterval