Need to test an XML API that uses basic authorization. Created this script with the assumption you have real cURL installed and to allow for automated parameterization of the script output.
param ($externalId, $inputBaseUrl, $inputUser, $inputApiKey)
function formatXml([string]$xmlcontent) {
$xmldoc = new-object -typename system.xml.xmldocument
$xmldoc.loadxml($xmlcontent)
$sw