.vscode/launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch scans.ps1",
            "type": "PowerShell",
            "request": "launch",
            "script": "${workspaceFolder}/scans.ps1",
            "cwd": "${cwd}",
            "internalConsoleOptions": "openOnSessionStart",
            "windows": {
                "args": ["-NoExit", "-Command", "$DebugPreference='Continue'"]
            }
        },
        {
            "name": "Publish updated scans.psm1 then launch scans.ps1",
            "type": "PowerShell",
            "request": "launch",
            "preLaunchTask": "Publish",
            "script": "${workspaceFolder}/scans.ps1",
            "cwd": "${cwd}",
            "internalConsoleOptions": "openOnSessionStart",
            "windows": {
                "args": ["-NoExit", "-Command", "$DebugPreference='Continue'"]
            }
        },
        {
            "name": "Compile and Run scans.exe",
            "type": "PowerShell",
            "request": "launch",
            "preLaunchTask": "Compile",
            "script": "${workspaceFolder}/scans.exe",
        }
    ]
}