Advanced functions behave the in the same way as cmdlets.  The PowerShell ISE includes two skeletons of advanced functions.  Access these via the menu, edit, code snippets, or by Ctrl+J.  (As of PS 3.0, later versions may differ)
Key things that advanced functions include are,
built-in, customiz...