I have experienced here, and have seen in discussions here, and here (quote: "good as PowerShell is and as good as vscode is, together they actually stink ") that:
There is a material delta between how a powershell script runs (and debugs) in VSCode vs outside VSCode.
Question: Where can I find a write up that explains the delta and how to manage for it?
Context: I currently have code that runs fine within VSCode but fails outside, and man is it frustrating!