When a user clicks "Connect" in the CyberArk interface, the system generates an RDP file that specifically calls PSMInitSession.exe as the startup program.
process.WaitForExit(5000);