Merge pterm functionality into launch script