可以直接执行cmd命令如
shell("netsh advfirewall firewall add rule name=""Open Port 3306"" dir=In action=allow protocol=TCP localport=3306")
https://support.microsoft.com/zh-cn/kb/947709