Script to activate and deactivate a Pool

See this post, you need to specify the path: