Dim js As Shell
Dim params As List
params.Initialize
Dim mystring As String=$"(Add-Type '[DllImport(\"user32.dll\")]^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)"$
js.Initialize("js", "powershell.exe", Array(mystring)) <---here getting error...
js.WorkingDirectory="c:\windows\system32"
If Main.ShellEncoding.Length>0 Then js.Encoding=Main.ShellEncoding
js.Run(-1)
Wait for (js) js_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
'Log(StdOut)