Remote desktop connection through custom Vb.net activity

I have an application present under the Citrix environment and wanted to access it from my local computer.
The application was accessible by computer vision activities. But my flow contains multiple if-else statements by which the overall performance gets very slow.
Can anyone help me access the desktop application in a remote environment through custom vb.net activity maybe the performance will get better?