This just uses enumeratepins to find 2 non-connected pins and connects them using the filtergraph.
Attach a file by drag & drop or click to upload