$ProcessList = Get-Process powershell Enter-PSHostProcess -Process $ProcessList[correctindex] Get-Runspace Debug-Runspace -Id [RunspaceIndex]