script copy-to-apispark