Getting an extprogram script to work