Refactor out getRunningProgramsWithNames from update command