1. 使用powerShell 弹出一个简单的消息框,代码如下,创建test.ps1脚本文件. $ConfirmPreference = 'None' $ws = New-Object -ComObject WScript.Shell $wsr = $ws.popup("The software has installed successfully, please restart your computer to take effect. Press OK to restart later.&q