Let me clarify your question:
there are already some policy configured on your Enforcer Server, then, you need to use the coding language, such as PHP or C# to develop some kind of tool, and, after run this tool, the policy will be activated or deactivated.
If so, I suggest you to use some kind of Web UI Automation Testing Tool, or Web Browser Automation Tool, such as Selenium.
You can use the Selenium to simulate the process/action of activating and deactivating the policy on Enforcer Server.