This script just copy modifed file and new created file to remote server and there is a line you can add what to do when a file is deleted. If you want to add other event you should see 'man ...
When using packer on a Linux host with a Windows 10 (or Win2016 and Win7) guest (which has the Cygwin SSH server installed) using the qemu builder and powershell "scripts" provisioner, packer cannot ...