Should I use semicolons at the end of each PowerShell statement? [closed]
Solution 1:
Powershell primarily uses new lines as statement seperators, but semicolons may be used for multiple statements on a single line.
Solution 2:
The key, no matter whether you choose to use semicolons or not, is to be consistent. If you are used to using them in C#, then continue to use them in PowerShell. If you don't want to use them, then don't use them. Pick a standard and stick with it for you and the people that will read and use your code. It will get ugly if you decide halfway through a project to start using them.