Packer not failing Docker + Powershell

I can’t create a deliberate failure in a Packer script using a Docker builder and a Powershell provisioner. All the provisioner contains is an inline “exit 1” call. I’m trying to get a simple example so I can understand how to get a more complex example to fail when the more complex Powershell calls fail.