PowerShell 3.0 ISE editor creates collapsible regions automatically, so you can collapse a function body or an IF statement. In addition, you can add your own custom collapsible regions like this:
#region Get-Process #endregion
Make sure you type the region comment statements exactly as shown. There may not be spaces between the comment character and the keyword, and both keywords are case-sensitive.