sql server agent keeps sending OLD results

I have a powershell script that sends me an email for failed or missing backups.

I changed the script and it works perfectly sending a new layout.

I created a NEW SQL agent job running the NEW powershell script but I keep getting the old email (different layout). If I schedule the SQL Agent job or run the agent job manually…old email. Has anyone seen this?


I’ve not personally seen this,
However, are you clearing variables, doing garbage collection on each pass?

Can you share the code with us? So that we may get a clue.