Bash Script Simulate Keyboard Input