title: Invoke-WebRequest equivalent in PowerShell v2
body: <p>Can some one help me with the powershell v2 version of the below cmdlet.</p>
  
  <pre><code>$body = 
  "&lt;wInput&gt;
    &lt;uInputValues&gt;
     &lt;uInputEntry value='$arg' key='stringArgument'/&gt;
    &lt;/uInputValues&gt;
    &lt;eDateAndTime&gt;&lt;/eDateAndTime&gt;
    &lt;comments&gt;&lt;/comments&gt; 
  &lt;/wInput&gt;"
  
  $password = ConvertTo-SecureString $wpassword -AsPlainText -Force
  $credential = New-Object System.Management.Automation.PSCredential ($wusername, $password)
  
  $output = Invoke-WebRequest -Uri $URI1 -Credential $credential -Method Post -ContentType application/xml -Body $body
  </code></pre>