PowerShell Background Job Memory Leak: Uncertain Automatic Cleanup Policy
Background jobs created with Start-Job remain in the session until Remove-Job is called, even after completion. This behavior can lead to elevated memory consumption in long‑running scripts. In PowerShell 7.2 a known bug caused job objects to stay in memory after Remove-Job , resulting in a measurable leak; the issue was fixed in 7.3 and later releases. Howe