How to close Picture In Picture window after execution

Hi,

I have a process running in PiP mode, but at the end of the execution the PiP window doesn’t close.

I was thinking using powershell command to use Disconnect-PSSession command without any success.

Any clue ?

The same question, just how to close it after a process finished automatically