This is a short PowerShell script used to automate RDP connections To make the code work successfully you need to change the following variables values:
$srv="10.1.2.3"
$username="my-user"
$password="Aa123456!"
Run the .ps1 file from powershell or compile it to exe
Also, you can set those varibales to a user input, follow the script instuctions