I have a PowerShell scrpt that autmatically creates a new snapshot and then removes all earlier snapshots. It also powere down and powers up the VM.
In all cases bar one the progress bar appears while the operation is taking place and then disappears when the operation completes,
The case where it stays is :
$sn = get-snapshot $machinename
......
remove-snapshot -snapshot £sn[-2] -confirm:$false
The progress bar remains until I terminate the script. This is unfortunate as my script is intended to loop permanently and perform an automated task when a file is placed into a folder.
What can I do to get rid of this progress bar?