I created a service account using the following: https://developers.google.com/drive/web/delegation I downloaded the file it asked me to download as a JSON file if that makes a difference.
Now how do I use that service account to initiate an ownership transfer using app script?
function transferOwnership() {
var fileId = "1YzwfuawY8OiFIw-nbUCagTUhrxmqH2PEyMmYz1NMT9A";
var p = {};
p.role = "owner";
p.type = "user";
p.value = "email@ofnewowner.com";
Drive.Permissions.insert(p,fileId);
}