PoshCode Archive  Artifact [b15c6c9ac8]

Artifact b15c6c9ac8b167734feb3bc2cba572e0b6e006801f1716328bdea04bea612147:

  • File Invoke-AdvancedFunction.ps1 — part of check-in [21c8affae4] at 2018-06-10 13:06:25 on branch trunk — From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes (user: Lee Holmes size: 469)

# encoding: ascii
# api: powershell
# title: Invoke-AdvancedFunction.
# description: From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
# version: 0.1
# type: script
# author: Lee Holmes
# license: CC0
# x-poshcode-id: 2174
# x-archived: 2016-05-17T10:50:45
# x-published: 2011-09-09T21:41:00
#
#
param(
    [Parameter(Mandatory = $true)]
    [ScriptBlock] $Scriptblock
    )

## Invoke the scriptblock supplied by the user.
& $scriptblock