Is it possible to simulate a button press on an Android application from another application (Android or Desktop)?
You can use adb command to simulate touch

adb shell input tap x y

where x y are the co-ordinates of the pixels on the screen to be tapped.