Created
April 24, 2018 10:17
-
-
Save shaneis/6f53ee8d27b5723c43eca210a484569e to your computer and use it in GitHub Desktop.
using the InvokeReturnAsIs method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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