Search notes:

PowerShell: common parameter -informationVariable

The common parameter -informationVariable is used in combination with the write-information cmdlet and specifies the name of a variable into which the written messages are accumulated.
The type of the variable is System.Collections.ArrayList.
function do-x {
  [cmdletBinding()] param()

   write-information "do-x was called"
}

function do-y {
  [cmdletBinding()] param()

   write-information "do-y was called"
   do-x
}

do-y -informationAction continue -informationVariable informationGathered

"Type of `$informationGathered: $($informationGathered.GetType().Fullname)"
foreach ($info in $informationGathered) {
   "Info: $info"
}
Github repository about-PowerShell, path: /language/cmdlet/parameter/common/informationVariable.ps1

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/...', 1740463655, '3.147.65.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/cmdlet/parameter/common/informationVariable(57): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78