appendKvScript