How to configure a schedule with specific credentials?

Product: PowerShell Universal
Version: 2.6.2

I have a script which needs to run with specific credentials. When I run it manually it works fine, but when I set it up as a schedule, I can’t specify environment or credentials which then fails the job. The screenshot in the documentation shows input fields for both but in my version it doesn’t have those.
I tried to edit schedules.ps1 and get this error:
“Error Deserializing C:\ProgramData\UniversalAutomation\Repository.universal\schedules.ps1
A parameter cannot be found that matches parameter name ‘Credentials’.”
After reloading the schedule is just gone.
How do I get this one running as intended?

You may have set the Environment and Credential for the script so it won’t allow you to select them for the schedule. Go to your Scripts page and edit the script’s properties. Set them back to default and then you’ll be able to set the options on the schedule.