Wait for process to exit using powershell (2 Solutions!!)

Published --