Error posting result from powershell-script

I am using telegraf and inputs.exec to collect information on the connected network-adapters and on my own computer it works and sends the data to my influxdb. But when running the same script on another computer the script fails to send any data

I am using Invoke-Webrequest when testing to verify that the data is in the correct format. On my own machine it runs without problems but I get this error message when running the same script on the other computer:

Error:
PS C:\Program Files\Telegraf\Scripts> .\getNetworkadapterInfo.ps1
Invoke-WebRequest : {"error":"unable to parse 'win_networkadapters,host=LML-CND8095ZSC,interface=Cisco\\ AnyConnect\\ S
ecure\\ Mobility\\ Client\\ Virtual\\ Miniport\\ Adapter\\ for\\ Windows\\ x64,interface_short=Cisco\\ AnyConnect\\ Sec
ure\\ Mobility\\ Client..,linkspeed=0\\ bps,connection=Not Present status=2,linkspeed_number=\"0\"': invalid field form
at"}
At C:\Program Files\Telegraf\Scripts\getNetworkadapterInfo.ps1:23 char:5
+     Invoke-WebRequest -Uri "http://lechuck.lantm.intra.local:8086/wri ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Script:

PS C:\Program Files\Telegraf\Scripts> .\getNetworkadapterInfo.ps1
Invoke-WebRequest : {"error":"unable to parse 'win_networkadapters,host=LML-CND8095ZSC,interface=Cisco\\ AnyConnect\\ S
ecure\\ Mobility\\ Client\\ Virtual\\ Miniport\\ Adapter\\ for\\ Windows\\ x64,interface_short=Cisco\\ AnyConnect\\ Sec
ure\\ Mobility\\ Client..,linkspeed=0\\ bps,connection=Not Present status=2,linkspeed_number=\"0\"': invalid field form
at"}
At C:\Program Files\Telegraf\Scripts\getNetworkadapterInfo.ps1:23 char:5
+     Invoke-WebRequest -Uri "http://lechuck.lantm.intra.local:8086/wri ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand