Visual Studio Code vs PowerShell terminal

I have a little PS form I’m making to try and make my day life a little easier. So I’ve created the PS form with a MenuStrip and some abilities. All works as expected when run from within VS Code.

If I run that same form/app (whatever it’s called) from a PS terminal, it will run and the MenuStrip operations are doing what they are supposed to, but the actual tasks don’t run at all.

In VS Code the first time I run it for the day it’ll act the same way as terminal (MenuStrip works but nothing else), until I run it a second time. It’s like it’s compiling the form or something the first time it runs, but it’ll only work after that.

I hope I’ve explained this well enough. Re-reading it I feel like it’s clear, but I’m seeing the problem firsthand so the problem outline reads correctly for me.

Does anyone have a nugget of knowledge to drop on how to make the form run on the first try?