PowerShell script for connecting to a remote host. Remote host will have full control over client's PowerShell and all its…