Hi there everyone!
I am trying to make powershell run commands through an external management site (wordpress multi-site-management dashboard), and i cant seem to be able to retrieve the response from the website.
The foreach loop which is not returning any response (even though it runs the exact same call) is found here:
Can someone tell me what i’m missing?
If i run this, i get the write response back by default (running Powershell ISE):
$pluginpath = “forminator/forminator.php”
$cosandsec = “consumer_key=ck_df&consumer_secret=cs_8f745gd”
Invoke-RestMethod -Method ‘Put’ -Uri $url
I would greatly appreciate some feedback!