I am trying to find a good way to work with PowerShell scripts that we use for SXA such as for scaffolding.
I have tried the PowerShell ISE client that was built into Sitecore but sometimes the UI was buggy and I was unable to run/test the scripts using this IDE.
Currently, I am copying the script over to VS Code, do my edits, copy it back, run it in Sitecore to test, etc. With no way to debug I have to rely purely on logs if errors occur for instance.
This is doable for simple scripts but for complex ones (think 500+ lines of PowerShell) it gets tedious. On top of that PowerShell is meant to be used as a scripting language and not meant to write complex programs like C#.
Isn't there a way to develop/test the scripts outside of Sitecore so I can use the tooling present in VS Code? It would be even better if this was possible using C#.