If you have recently updated PowerShell and subsequently discovered that now the UAG DirectAccess management “Apply Policy” fails, returning an error message instead of the “Script run completed with no errors or warnings” message that you get when the policy is successfully applied, you’ll want to head over to the Forefront UAG Product Team Blog, where they address this problem and tell you how to resolve the problem.
Check out the blog post here: