Scripts runs on Windows server, but not through Jenkins

This has a Windows Server security smell. What account is the service using? Is it the same account that Jenkins is using?

At a guess, I’d want Jenkins, IE and the service to be executed in the same security context/account.