It looks like System.exec will do what you need.