Unsupported script state

I have an error showing unsupported script state while generating mender artifact using single-artifact-gen. I used scripts for Download_Enter and Sync_Leave states. Both showed same issues.

What am I missing ? I am using Mender version 2.2.

Thanks in advance.

Download and Sync states are not artifact related. They need to be installed into the target root file system. Details are here.