Hi,
just for reference.
you can control the streamlabs OBS client via Named Pipes like so:
Local $sMessage = '{"jsonrpc": "2.0","id": 1,"method": "toggleRecording","params": {"resource": "StreamingService","args": []}}'
$handle = FileOpen("\\.\pipe\slobs", 2)
FileWriteLine($handle, $sMessage)
FileClose($handle)
the api can be found here: https://stream-labs.github.io/streamlabs-obs-api-docs/docs/index.html