Scheduler script doesn't recognize PSCredential param


I got a script contains [PSCredential] param and scheduled for a cron job.
If I’ll try to change any property in the schedule - script will dissapear from the Schedules page and “Unknown variable:” error will apear.
The only way I found to return schedule - manually edit Schedule.ps1 file on the server and delete Credential property

Version 3.8.12