The setting to get the schedule task configured to run in Windows 10 is to include one more statement for the settings
settings.compatibility = 6
Thanks to AI for pointing me to this solution.