Common script for external programs