Kopia in batch file on Windows

I’m running kopia in a batch file
cd /D a:\kopia
kopia.exe snapshot create F:\CBPA\ –password=myrepository password

Run’s fine when Windows is locked, if I logoff then script doesn’t run.
Task Scheduler, Run task as system, Run whether user is logged on or not.

Tried all different account local admin, domain admin, system

Edit: came right, turned kopia.exe into Windows Service, backups run when logged out, reboot with no issues.