Private/UserDataEC2LaunchV2.xml

<script>
  "%programfiles%\amazon\ec2launch\ec2launch.exe" sysprep --shutdown=true
</script>
<persist>false</persist>
<detach>true</detach>