There's multiple ways to do this. One way would be to write some text to a file indicating that you want the mule to login. The mule script would check the contents of the check every x seconds, if it contains the text you wrote in the original script, it would login and wait for a trade.