Stop maintenance from powershell script
During deploy we need to stop maintenance manually. Should be good to stop from powershell script.
Nico van Kleef shared this idea
With the Automated Task feature in BizTalk360 you can manage all your maintenance activity. You can create custom work flow to start/stop applications , artifacts , alarms , also you can execute the powershell script through this features.
Refer this article for more details .