I am invoking a CIM method using power shell. Method arguments are in XML file like this
XML input file:-
<root>
<field1>value1</<field1>
<field2>value2</<field2>
</root>
Powershell command:-
Invoke-CimMethod -InputObject $inst -CimSession $session -MethodName method_name -Arguments @{field1='value1';field2='value2'}
When i am passing as command line argument like @{field1='value1';field2='value2'} it works fine.
Is there any way to directly pass it as xml input file in power shell like we have '-file:input.xml' in winrm?.