Windows Task Scheduler
The Windows Task Scheduler makes it possible to create and alter scheduled tasks on Windows 2012, Windows 8 and higher, using WinRM to connect to the server. Older Windows version are not supported, because they are missing the ScheduledTasks cmdlet.
The task provides the following functionality
The XML file can be exported with Powershell (https://docs.microsoft.com/en-us/powershell/module/scheduledtasks/export-scheduledtask), or you can open the task scheduler in windows, right-click the task you want to export and select export.