Do you have Powershell in Windows 12 or windows server 2016?
I recommend to test using only the class TProcess to control Powershell in Windows 12 or windows server 2016.
If you success, then test using UnTerminal, because it's just a wrapper for TProcess.