Search notes:

PowerShell: Advanced functions

A function becomes advanced if it contains a [cmdLetBinding()] param(…) statement:
function advanced-func {
   [cmdLetBinding()]
    param(
       …
    )

    … 

}
Advanced functions can have up to three script blocks: begin, process and end.

Differences from compiled cmdlets

Microsoft's documentation lists the following three differences between advanced functions and compiled cmdlets:

See also

The CmdLetBinding type accelerator

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1745384737, '160.79.111.119', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/function/advanced/index(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78