Solved the script issue, now gets this error message:
PS C:\Windows\system32> Set-AcceptedDomain <enoe-gruppen.dk> -OutboundOnly $true
At line:1 char:20
+ Set-AcceptedDomain <enoe-gruppen.dk> -OutboundOnly $true
+ ~
The '<' operator is reserved for future use.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : RedirectionNotSupported