.vscode/launch.json

{
   // Use IntelliSense to learn about possible attributes.
   // Hover to view descriptions of existing attributes.
   // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
   "version": "0.2.0",
   "configurations": [
   {
      "name": ".NET Core Attach",
      "type": "coreclr",
      "request": "attach",
      "processId": "${command:pickProcess}"
   },
      {
         "name": "Start PowerShell",
         "type": "coreclr",
         "request": "launch",
         "program": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
         "args": [],
         "cwd": "${workspaceFolder}",
         "stopAtEntry": false,
         "externalConsole": true
      },
      {
         "type": "PowerShell",
         "request": "launch",
         "name": "PowerShell Pester Tests",
         "script": "Invoke-Pester",
         "args": ["-Script",
         "${file}"],
         "cwd": "${workspaceRoot}"
      },
      {
         "type": "PowerShell",
         "request": "launch",
         "name": "PowerShell Launch Current File",
         "script": "${file}",
         "args": [],
         "cwd": "${file}"
      },
      {
         "type": "PowerShell",
         "request": "launch",
         "name": "PowerShell Launch Current File in Temporary Console",
         "script": "${file}",
         "args": [],
         "cwd": "${file}",
         "createTemporaryIntegratedConsole": true
      },
      {
         "type": "PowerShell",
         "request": "launch",
         "name": "PowerShell Launch Current File w/Args Prompt",
         "script": "${file}",
         "args": [
            "${command:SpecifyScriptArgs}"
         ],
         "cwd": "${file}"
      },
      {
         "type": "PowerShell",
         "request": "attach",
         "name": "PowerShell Attach to Host Process",
         "processId": "${command:PickPSHostProcess}",
         "runspaceId": 1
      },
      {
         "type": "PowerShell",
         "request": "launch",
         "name": "PowerShell Interactive Session",
         "cwd": "${workspaceRoot}"
      }
   ]
}