Programmatically disabling UAC sort of defeats the purpose of UAC, wouldn't you think?
I'm not saying it's not possible, but if it were and I knew how, I wouldn't share it.
Disabling UAC via the GUI or the command line is easy, yes. What you're asking is how to
do it programmatically at a lower level that wouldn't require any confirmation via some
direct user interaction. As Herfried and I mentioned, this probably isn't even possible,
and even if it were, it wouldn't be responsible for anyone to share it, IMO.