I just ran the above and this how it ends.. Any help is much appreciated. Thanks.
==> amazon-ebs: Restarting Machine
==> amazon-ebs: Waiting for machine to restart...
amazon-ebs: A system shutdown is in progress.(1115)
amazon-ebs: WIN-R6G2K20J120 restarted.
amazon-ebs: #< CLIXML
amazon-ebs: <Objs Version="1.1.0.1" xmlns="
http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>
==> amazon-ebs: Machine successfully restarted, moving on
==> amazon-ebs: Provisioning with Powershell...
==> amazon-ebs: Provisioning with powershell script: ./scripts/restart_check.ps1
amazon-ebs: 12/06/2018 19:38:44 Starting the Clean up ...
amazon-ebs: MSI Process Is Running
amazon-ebs: 12/06/2018 19:38:44Checking for post installation completion...
amazon-ebs: installreRunning Result = System.Diagnostics.Process (msiexec)
amazon-ebs: 12/06/2018 19:38:44 Restart is still in progress with post installation steps ...
amazon-ebs: 12/06/2018 19:38:54Checking for post installation completion...
amazon-ebs: installreRunning Result = System.Diagnostics.Process (msiexec)
amazon-ebs: 12/06/2018 19:38:54 Restart is still in progress with post installation steps ...
amazon-ebs: 12/06/2018 19:39:04Checking for post installation completion...
amazon-ebs: installreRunning Result = System.Diagnostics.Process (msiexec)
amazon-ebs: 12/06/2018 19:39:04 Restart is still in progress with post installation steps ...
amazon-ebs: 12/06/2018 19:39:14Checking for post installation completion...
amazon-ebs: installreRunning Result = System.Diagnostics.Process (msiexec)
amazon-ebs: 12/06/2018 19:39:14 Restart is still in progress with post installation steps ...
amazon-ebs: 12/06/2018 19:39:24Checking for post installation completion...
amazon-ebs: installreRunning Result = System.Diagnostics.Process (msiexec)
amazon-ebs: 12/06/2018 19:39:24 Restart is still in progress with post installation steps ...
amazon-ebs: 12/06/2018 19:39:25 Finished Cleaning up
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: No volumes to clean up, skipping
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' errored: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]