script to deploy WMAgent