This is a fork of py7hagoras/GetSystem repo that was modified to be able to make an executable run with NT SERVICE\TRUSTEDINSTALLER permissions by spawning it as a child of TrustedInstaller.exe under SYSTEM account.
GetTrustedInstaller.exe <absolute path of executable to run + arguments>
GetTrustedInstaller.exe "C:\Windows\System32\cmd.exe /k whoami"