So I made a Confluence macro which executes a curl command in cmd.exe and gives me back a JSONObject as a string. The problem is, that he machine where our Confluence is doesn't recognize the curl command and the admins don't want to install the necessary files to make it work, so they told me to try and use a Powershell command.
The curl command is this: curl -u {user}:{pass} {url}. I need an equivalent for this in powershell 2.0.