try to set up - Log on as a batch job https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/log-on-as-a-batch-job
Using powershell, how do I grant "Log on as service" to an account?