I'm having trouble using the Invoke-RestMethod and the -Body value.
I need to get all of the following in to a variable which I'll pass to the -Body parameter:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
If I create a hash then I can use:
and I can generate the key and value pairs using ConvertFrom-StringData.
But, what I need is to have all of the text above, not just UserID and Password. The -Body parameter expects and object:
Any ideas on how I achieve this?