<%# The default create_pipeline template wraps everything within an Invoke-Expression call, treating the command as a string, but that doesn't work for the Exchange environment. %> System.Collections.Generic.List`1[[System.Management.Automation.PSObject, System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] System.Object <%= cmdlet.encode(xml: :text) %> false System.Management.Automation.Runspaces.PipelineResultTypes System.Enum System.ValueType System.Object None 0 None 0 None 0 None 0 None 0 None 0 None 0 <% args.each_with_index do |arg, index| %> <%# start indexing arguments at 100 to be above the index numbers used by everything else %> <%= arg[:name].encode(xml: :text) %> <% if arg[:value].nil? %> <% elsif arg[:value].is_a?(TrueClass) || arg[:value].is_a?(FalseClass) %> <%= arg[:value].to_s %> <% elsif arg[:value].is_a? String %> <%= arg[:value].encode(xml: :text) %> <% elsif arg[:value].is_a? Nokogiri::XML::Element %> <%= arg[:value].to_s %> <% end %> <% end %> false true true System.Threading.ApartmentState System.Enum System.ValueType System.Object Unknown 2 System.Management.Automation.RemoteStreamOptions System.Enum System.ValueType System.Object 0 0 true true true true true false