|You should have a look at: NirCMD|
Nircmd.exe sendkey a press
In the following script example, the system behaves like the user presses Shift+Ctrl+Esc (the task manager should appear):
nircmd.exe sendkey shift down
nircmd.exe sendkey ctrl down
nircmd.exe sendkey esc down
nircmd.exe sendkey shift up
nircmd.exe sendkey ctrl up
nircmd.exe sendkey esc up
You also have special Virtual key codes.
(For example: 0x2e for Delete key)
nircmd.exe sendkey 0x2e press
Google for virtual key codes.
Happy is ONE who says I am an OttoMAN.