Retrieve past results: Get-Job -Name 'DailyReport' | Receive-Job -Keep; unregister when no longer needed: Unregister-ScheduledJob -Name 'DailyReport'
Known gotchas
Register-ScheduledJob is part of the PSScheduledJob module which ships with Windows PowerShell 5.1; it may not be available in all PowerShell 7 environments — verify with Get-Module -ListAvailable PSScheduledJob.
Scheduled jobs store their results in XML under $env:LOCALAPPDATA\Microsoft\Windows\PowerShell\ScheduledJobs; results accumulate and should be pruned or the MaxResultCount property set to limit disk usage.
Jobs registered without -Credential run under the Task Scheduler service account context of the registering user; ensure the account has the rights to access all resources the script needs.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp