I have a Powershell script that is designed to compile VB6 projects on build servers. It calls VB6.exe with the correct arguments. When I run the PS script on the local machine, the script works beautifully. However, when invoking the script via a TFS release pipeline with the same arguments, VB6.exe hangs forever. I can see the vb6.exe process running in Task Manager but it just hangs there forever. This is essentially the exact same problem described in this question but there was no answer there.
I know it is not a permissions problem, as the PS script uses -Verb runAs and logs into the machine as the same user that I am logged in to when running the script interactively.
Has anyone encountered this issue before? I am wondering if it is registry related but do not have enough information to say that for sure.