Skip to content

Instantly share code, notes, and snippets.

@shaneis
Created April 24, 2018 10:17
Show Gist options
  • Save shaneis/6f53ee8d27b5723c43eca210a484569e to your computer and use it in GitHub Desktop.
Save shaneis/6f53ee8d27b5723c43eca210a484569e to your computer and use it in GitHub Desktop.
using the InvokeReturnAsIs method
for ($i = 0; $i -lt 10; $i++) {
[PSCustomObject]@{
Date = Get-Date
ScriptBlock = 'Actual Scriptblock'
DateDescription = $Script.InvokeReturnAsIs()
}
Start-Sleep -Seconds 6
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment