Doch gestern erst , die machen ganz leckere belegte Brote <| sep |> Its called damage control . ACORN got shit on after O ' Keefe before it turned out he was a fraud . A criminal fraud actually . <| sep |>$ doesn ' t have the value you ' re expecting it to inside the $ expression . Break your ForEachObject scriptblock into two lines $ XAML . SelectNodes % $ Name $. Name SetVariable Name WPF $ Name Value $ Form . FindName $ Name But you ' ll still get an error here $ FormLoad $ reader Until you add the line that ukdf 2883 said to at the top of the script . Now I ' m not really sure what ' s going on here as all this XML stuff for Windows forms is new to me . But I don ' t get anything returned from SelectNodes . Anyway I ' m not getting errors anymore . Progress , right ?