PowerShell scripters have a few choices in the editor they can use to write code. Options range from the PowerShell Integrated Script Environment, Visual Studio Code, Visual Studio, Notepad++ and more ...
By defining Microsoft PowerShell functions within PowerShell modules, you can organize your scripts, avoid duplicating code, ...