http://thepowershellguy.com/blogs/posh/archive/2007/01/16/powershell-the-admin-development-model.aspx 介绍了如何使用.Net Framework Class中的System.Diagnostics.Process来等待进程退出.