Попробуйте указать имя, которое имеет тире в нем:
PS > $xml = [xml]'<root><dash-it-all>text</dash-it-all></root>' PS > $xml.root.'dash-it-all'