Forum Discussion

DanSchuster_234's avatar
DanSchuster_234
Historic F5 Account
Jan 19, 2016

Powershell calling a script

Hi,   How do you call a script via PowerShell? Looking to do the equivalent of this successful curl command but via PS:   curl -k -u admin -H "Content-Type: application/json" -X POST https://...
  • Brad_Parker_139's avatar
    Jan 19, 2016

    Your body needs to be just like it is in your curl example. It needs to be in JSON format. i.e.

    $body = '{
                "command":"run",
                "utilCmdArgs":"dtstest 10.1.10.1"
             }'