I know ChatGPT has a long way to go (and has come a long way), but I seriously get errors like this somewhat frequently when testing it. In this case, my query requested a scheduled job, not a scheduled task. It also oddly defines the PowerShell snippets as SQL then Python.