Hi @OZ •
If you want create a schedule task with domain service account to copy log file from servers to a shared folder, you have to create it through Powershell script or manually on each server.
Unfortunately , it's not possible create a schedule task running with domain service account through the Group Policy Preference to avoid store its password in sysvol folder and be read by all users in your domain.
Please don't forget to accept helpful answer