8133948: Add 'edit' function to allow external editing of scripts