.vscode/tasks.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "test",
            "type": "shell",
            "command": "pwsh",
            "args": [
                "-File",
                "test.ps1"
            ],
            "group": {
                "kind": "test",
                "isDefault": true
            }
        }
    ]
}