See - https://www.reddit.com/r/programming/comments/8vgfpf/proof_of_concept_sudo_for_windows_no_uac_inherits/e1ntg8c/ Sudo requires `-E` for this.