Calling a PowerShell script from within a VBScript and the use of quotes in the variable passed (JSON format variable)
Good day,
I am neither a seasoned VBScript of PS scripting specialist. My monitoring system has a controlling VBScript for opening support tickets, and it now needs to change to accommodate JSON output posted to a service.
I first attempted to POST the JSON string directly from within the VBScript, but I always get an error “msxml3.dll: A connection with the server could not be established” that I cannot seem to fix. So, I tested the JSON POST from PS, and it worked straight away.
In my infinite wisdom, I then decided to call the PS script from within the VBScript, but that has opened it’s own can of worms. The two biggest worms I’m referring to here are 1) trying to get the call right, and 2) dealing with quotes.