[Trace - 04:35:58] Sending request 'initialize - (0)'. Params: { "processId": 7844, "clientInfo": { "name": "Visual Studio Code", "version": "1.69.2" }, "locale": "pl", "rootPath": "c:\\Users\\ALIEN\\Downloads\\PS7ForEach", "rootUri": "file:///c%3A/Users/ALIEN/Downloads/PS7ForEach", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional", "normalizesLineEndings": true, "changeAnnotationSupport": { "groupsOnLabel": true } }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "tagSupport": { "valueSet": [ 1 ] } }, "codeLens": { "refreshSupport": true }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true, "semanticTokens": { "refreshSupport": true }, "fileOperations": { "dynamicRegistration": true, "didCreate": true, "didRename": true, "didDelete": true, "willCreate": true, "willRename": true, "willDelete": true } }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] }, "codeDescriptionSupport": true, "dataSupport": true }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] }, "insertReplaceSupport": true, "resolveSupport": { "properties": [ "documentation", "detail", "additionalTextEdits" ] }, "insertTextModeSupport": { "valueSet": [ 1, 2 ] } }, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true }, "activeParameterSupport": true }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true, "tagSupport": { "valueSet": [ 1 ] }, "labelSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "disabledSupport": true, "dataSupport": true, "resolveSupport": { "properties": [ "edit" ] }, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } }, "honorsChangeAnnotations": false }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true, "prepareSupportDefaultBehavior": 1, "honorsChangeAnnotations": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true }, "callHierarchy": { "dynamicRegistration": true }, "semanticTokens": { "dynamicRegistration": true, "tokenTypes": [ "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator" ], "tokenModifiers": [ "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary" ], "formats": [ "relative" ], "requests": { "range": true, "full": { "delta": true } }, "multilineTokenSupport": false, "overlappingTokenSupport": false }, "linkedEditingRange": { "dynamicRegistration": true } }, "window": { "showMessage": { "messageActionItem": { "additionalPropertiesSupport": true } }, "showDocument": { "support": true }, "workDoneProgress": true }, "general": { "regularExpressions": { "engine": "ECMAScript", "version": "ES2020" }, "markdown": { "parser": "marked", "version": "1.1.0" } } }, "initializationOptions": { "enableProfileLoading": false, "initialWorkingDirectory": null }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///c%3A/Users/ALIEN/Downloads/PS7ForEach", "name": "PS7ForEach" } ] } [Trace - 04:35:59] Received notification 'window/logMessage'. Params: { "type": 4, "message": "Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost: Starting host... | " } Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost: Starting host... | [Trace - 04:35:59] Received notification 'window/logMessage'. Params: { "type": 4, "message": "Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost: Setting InitialWorkingDirectory to c:\\Users\\ALIEN\\Downloads\\PS7ForEach... | " } Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost: Setting InitialWorkingDirectory to c:\Users\ALIEN\Downloads\PS7ForEach... | [Trace - 04:35:59] Received notification 'window/logMessage'. Params: { "type": 3, "message": "Microsoft.PowerShell.EditorServices.Services.PowerShell.Console.ReadLineProvider: ReadLine overridden with 'Microsoft.PowerShell.EditorServices.Services.PowerShell.Console.PsrlReadLine' | " } [Info - 04:35:59] Microsoft.PowerShell.EditorServices.Services.PowerShell.Console.ReadLineProvider: ReadLine overridden with 'Microsoft.PowerShell.EditorServices.Services.PowerShell.Console.PsrlReadLine' | [Trace - 04:35:59] Received notification 'window/logMessage'. Params: { "type": 4, "message": "Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost: Setting execution policy to RemoteSigned | Policy='RemoteSigned'" } Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost: Setting execution policy to RemoteSigned | Policy='RemoteSigned' [Trace - 04:35:59] Received notification 'window/logMessage'. Params: { "type": 4, "message": "Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost: InitialWorkingDirectory set! | " } Microsoft.PowerShell.EditorServices.Services.PowerShell.Host.PsesInternalHost: InitialWorkingDirectory set! | [Trace - 04:35:59] Received notification 'window/logMessage'. Params: { "type": 4, "message": "OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult | Type='OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult'" } OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Response value was OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult | Type='OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult' [Trace - 04:35:59] Received notification 'window/logMessage'. Params: { "type": 4, "message": "OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Finished: Routing Request (0) initialize in 729ms | Id='0' Method='initialize' ElapsedMilliseconds='729'" } OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Finished: Routing Request (0) initialize in 729ms | Id='0' Method='initialize' ElapsedMilliseconds='729' [Trace - 04:35:59] Received notification 'window/logMessage'. Params: { "type": 4, "message": "OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker: Finished: Processing request initialize 0 in 734ms | Method='initialize' ResponseId='0' ElapsedMilliseconds='734'" } OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker: Finished: Processing request initialize 0 in 734ms | Method='initialize' ResponseId='0' ElapsedMilliseconds='734' [Trace - 04:36:00] Received response 'initialize - (0)' in 1300ms. Result: { "capabilities": { "experimental": {}, "workspace": { "workspaceFolders": { "supported": true, "changeNotifications": true }, "fileOperations": {} } }, "serverInfo": { "name": "pwsh", "version": "7.2.5 SHA: 0aad398b0e918ce7d73dca929ca6395639085b21" } } [Trace - 04:36:00] Sending notification 'initialized'. Params: {} [Trace - 04:36:00] Sending notification 'workspace/didChangeConfiguration'. Params: { "settings": { "powershell": { "sideBar": { "CommandExplorerVisibility": true, "CommandExplorerExcludeFilter": [] }, "powerShellAdditionalExePaths": {}, "powerShellDefaultVersion": "PowerShell (x64)", "powerShellExePath": "", "promptToUpdatePowerShell": false, "promptToUpdatePackageManagement": false, "startAsLoginShell": { "osx": true, "linux": false }, "startAutomatically": true, "useX86Host": false, "enableProfileLoading": false, "bugReporting": { "project": "https://github.com/PowerShell/vscode-powershell" }, "helpCompletion": "BlockComment", "cwd": null, "scriptAnalysis": { "enable": false, "settingsPath": "C:\\Users\\ALIEN\\Documents\\PowerShell\\PSScriptAnalyzerSettings.psd1" }, "codeFolding": { "enable": true, "showLastLine": true }, "codeFormatting": { "autoCorrectAliases": false, "preset": "OTBS", "openBraceOnSameLine": true, "newLineAfterOpenBrace": true, "newLineAfterCloseBrace": true, "pipelineIndentationStyle": "NoIndentation", "whitespaceBeforeOpenBrace": true, "whitespaceBeforeOpenParen": true, "whitespaceAroundOperator": true, "whitespaceAfterSeparator": true, "whitespaceInsideBrace": true, "whitespaceBetweenParameters": true, "whitespaceAroundPipe": true, "addWhitespaceAroundPipe": true, "trimWhitespaceAroundPipe": false, "ignoreOneLineBlock": true, "alignPropertyValuePairs": true, "useConstantStrings": false, "useCorrectCasing": true }, "integratedConsole": { "showOnStartup": true, "focusConsoleOnExecute": false, "useLegacyReadLine": false, "forceClearScrollbackBuffer": true, "suppressStartupBanner": true }, "debugging": { "createTemporaryIntegratedConsole": false }, "developer": { "bundledModulesPath": "", "editorServicesLogLevel": "Diagnostic", "editorServicesWaitForDebugger": false, "featureFlags": [], "waitForSessionFileTimeoutSeconds": 240 }, "pester": { "useLegacyCodeLens": false, "codeLens": true, "outputVerbosity": "FromPreference", "debugOutputVerbosity": "Diagnostic" }, "buttons": { "showRunButtons": true, "showPanelMovementButtons": false } }, "files": { "refactoring": { "autoSave": true }, "exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/CVS": true, "**/.DS_Store": true, "**/Thumbs.db": true }, "associations": { "*.mod": "paradox", "*.txt": "plaintext", ".gitignore": "gitignore" }, "encoding": "utf8", "autoGuessEncoding": false, "eol": "\r\n", "enableTrash": true, "trimTrailingWhitespace": false, "insertFinalNewline": true, "trimFinalNewlines": false, "autoSave": "off", "autoSaveDelay": 1000, "watcherExclude": { "**/.git/objects/**": true, "**/.git/subtree-cache/**": true, "**/node_modules/*/**": true, "**/.hg/store/**": true }, "watcherInclude": [], "hotExit": "onExit", "defaultLanguage": "powershell", "maxMemoryForLargeFilesMB": 4096, "restoreUndoStack": true, "saveConflictResolution": "askUser", "simpleDialog": { "enable": false }, "participants": { "timeout": 60000 } }, "search": { "exclude": { "**/node_modules": true, "**/bower_components": true, "**/*.code-search": true }, "mode": "view", "useRipgrep": true, "maintainFileSearchCache": false, "useIgnoreFiles": true, "useGlobalIgnoreFiles": true, "useParentIgnoreFiles": false, "quickOpen": { "includeSymbols": false, "includeHistory": true, "history": { "filterSortOrder": "default" } }, "followSymlinks": true, "smartCase": false, "location": "sidebar", "maxResults": 20000, "collapseResults": "alwaysExpand", "useReplacePreview": true, "showLineNumbers": false, "usePCRE2": false, "actionsPosition": "right", "searchOnType": true, "seedWithNearestWord": false, "seedOnFocus": false, "searchOnTypeDebouncePeriod": 300, "searchEditor": { "doubleClickBehaviour": "goToLocation", "reusePriorSearchConfiguration": false, "defaultNumberOfContextLines": 1 }, "sortOrder": "default" } } } [Trace - 04:36:00] Sending request 'powerShell/getVersion - (1)'. [Trace - 04:36:00] Received notification 'window/logMessage'. Params: { "type": 4, "message": "OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Finding descriptors for initialized | Method='initialized'" } OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Finding descriptors for initialized | Method='initialized' [Trace - 04:36:00] Received notification 'window/logMessage'. Params: { "type": 4, "message": "OmniSharp.Extensions.JsonRpc.ProcessScheduler: Queueing Serial:initialized request for processing | Type='Serial' Name='initialized'" } OmniSharp.Extensions.JsonRpc.ProcessScheduler: Queueing Serial:initialized request for processing | Type='Serial' Name='initialized' [Trace - 04:36:00] Received notification 'window/logMessage'. Params: { "type": 4, "message": "OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker: Starting: Processing notification initialized | Method='initialized'" } OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker: Starting: Processing notification initialized | Method='initialized' [Trace - 04:36:00] Received notification 'window/logMessage'. Params: { "type": 4, "message": "OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Starting: Routing Notification initialized | Method='initialized'" } OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Starting: Routing Notification initialized | Method='initialized' [Trace - 04:36:00] Received notification 'window/logMessage'. Params: { "type": 4, "message": "OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Converting params for Notification initialized to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams | Method='initialized' Type='OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams'" } OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter: Converting params for Notification initialized to OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams | Method='initialized' Type='OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializedParams' [Trace - 04:36:00] Received notification 'window/logMessage'. Params: { "type": 2, "message": "OmniSharp.Extensions.LanguageServer.Server.Configuration.DidChangeConfigurationProvider: No ConfigurationItems have been defined, configuration won't surface any configuration from the client! | " } [Warn - 04:36:00] OmniSharp.Extensions.LanguageServer.Server.Configuration.DidChangeConfigurationProvider: No ConfigurationItems have been defined, configuration won't surface any configuration from the client! | [Trace - 04:36:00] Received request 'client/registerCapability - (1)'. Params: { "registrations": [ { "id": "0c9d1c7e-5801-4dff-b7d2-0d62a39d6610", "method": "textDocument/didSave", "registerOptions": { "includeText": true, "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ] } }, { "id": "3a42c36e-7d6a-442e-8530-7d42eeb604dd", "method": "textDocument/references", "registerOptions": { "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "097c3eb9-02d6-4104-b2d5-95ba6a29df97", "method": "textDocument/didChange", "registerOptions": { "syncKind": 2, "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ] } }, { "id": "bc0431bf-fa6d-4bc7-9d37-29120711872c", "method": "textDocument/documentSymbol", "registerOptions": { "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "73fc884d-eb89-41e3-baee-673d198d6643", "method": "textDocument/definition", "registerOptions": { "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "99093963-048d-42de-9704-3eb66548f2ab", "method": "textDocument/didOpen", "registerOptions": { "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ] } }, { "id": "7b1f24b2-6a74-4f1b-ada0-71ba65dcd730", "method": "workspace/symbol", "registerOptions": { "workDoneProgress": true } }, { "id": "54203e06-bb2a-4741-8220-4026cbd5544a", "method": "textDocument/codeAction", "registerOptions": { "codeActionKinds": [ "quickfix" ], "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "1ff4db7b-cae9-4faa-9436-d12114a55a5c", "method": "textDocument/documentHighlight", "registerOptions": { "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "b2dd9831-e972-4760-a88b-7622e8163791", "method": "textDocument/formatting", "registerOptions": { "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "3187000b-0df3-4e34-99bc-6dec57baf155", "method": "textDocument/hover", "registerOptions": { "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "f4c2fc0b-c72c-4d41-8002-9b03239bc656", "method": "textDocument/completion", "registerOptions": { "resolveProvider": true, "triggerCharacters": [ ".", "-", ":", "\\", "$", " " ], "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "6537eb1b-ed4d-46b9-a7b9-1fec105c84df", "method": "textDocument/signatureHelp", "registerOptions": { "triggerCharacters": [ " " ], "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "4ddf162e-ce72-47b8-8d31-c0f8030e36fd", "method": "textDocument/semanticTokens", "registerOptions": { "legend": { "tokenTypes": [ "comment", "keyword", "string", "number", "regexp", "operator", "namespace", "type", "struct", "class", "interface", "enum", "typeParameter", "function", "method", "property", "macro", "variable", "parameter", "label", "modifier", "event", "enumMember" ], "tokenModifiers": [ "documentation", "declaration", "definition", "static", "async", "abstract", "deprecated", "readonly", "modification", "defaultLibrary" ] }, "range": true, "full": { "delta": true }, "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "f0444830-47ab-4c03-95cd-372bd1d26fb9", "method": "textDocument/codeLens", "registerOptions": { "resolveProvider": true, "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "eee339bc-2b70-4d39-b045-724eca526419", "method": "textDocument/foldingRange", "registerOptions": { "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } }, { "id": "43c85c8f-01ca-4a53-99dd-5114c7bd9b81", "method": "textDocument/didClose", "registerOptions": { "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ] } }, { "id": "7e3db651-a8f3-4ea0-ae63-06097fe24ba7", "method": "textDocument/rangeFormatting", "registerOptions": { "documentSelector": [ { "language": "powershell" }, { "language": "pwsh" }, { "language": "ps1" }, { "language": "psm1" }, { "language": "psd1" }, { "pattern": "**/*.ps*1" } ], "workDoneProgress": true } } ] } [Trace - 04:36:00] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///c%3A/Users/ALIEN/Downloads/PS7ForEach/%23Works-WPF-TextBox-Ast-GetScriptBlock.ps1", "languageId": "powershell", "version": 1, "text": "Add-Type -AssemblyName PresentationFramework\n\nfunction Start-RunspaceTask {\n [CmdletBinding()]\n Param (\n [Parameter(Mandatory, Position = 0)][ScriptBlock]$ScriptBlock,\n [Parameter(Mandatory, Position = 1)][PSObject[]]$ProxyVars\n )\n \n $Runspace = [RunspaceFactory]::CreateRunspace($InitialSessionState)\n $Runspace.ApartmentState = 'STA'\n $Runspace.ThreadOptions = 'ReuseThread'\n $Runspace.Open()\n ForEach ($Var in $ProxyVars) { $Runspace.SessionStateProxy.SetVariable($Var.VariableName, $Var.VariableValue) }\n $Thread = [PowerShell]::Create()\n $Thread.AddScript($ScriptBlock, $True) | Out-Null\n $Thread.Runspace = $Runspace\n [Void]$jobList.Add([PSObject]@{ PowerShell = $Thread; Runspace = $Thread.BeginInvoke() })\n}\n\n$Xaml = New-Object System.Xml.XmlNodeReader([XML]@\"\n\n \n