Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Using the ampersand to "call" the scriptblock
for ($i = 0; $i -lt 10; $i++) {
Date = Get-Date
ScriptBlock = 'Actual Scriptblock'
DateDescription = & $Script
Start-Sleep -Seconds 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment