I have finally decided to default to PS V7 instead of 5.1.
I have a module installed that I have been using in the old v1.0\modules.
I have installed the latest version of VS code and the powershell extension and edited the json file in VS Code to default to PS V7.
When I run get-module -listavailable it shows my module.
However when I run some code calling functions in that module it says my functions are not recognised.
I can run import-module xxxx fine. Even after importing the module it cannot find my functions.
On other thing - it doesnt like my [pscustomobject] accelerator - something about only core types are supported in this language mode.