Created
June 9, 2019 04:14
-
-
Save lg/507c3e643d8c5d9b2d47f35eb8eb7193 to your computer and use it in GitHub Desktop.
current line in script
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
$tocontinue = $MyInvocation.MyCommand.ScriptBlock.ToString().split([Environment]::NewLine)[(Get-PSCallStack).Position.StartLineNumber,-1] -join [Environment]::NewLine | Out-String |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment