I am dumping characters one by one of a script file path onto powershell console using SendMessage API.
At the first execution of program, powershell skips the repeated character from a path which creates an issue.
For e.g. "C:\myFolder\abbc\test.ps1"
From above path when I dump a characters onto powershell window, it skips 1 b from "abbc" so the final path that gets dumped on console is "C:\myFolder\abc\test.ps1".
This happens only first execution of application, on subsequent executions it works fine and accepts repeat characters as well.