For PowerShell cmdlets, can I always pass a script block to a string parameter?

# Delay-bind script-block argument: # The code inside { … } is executed for each input object ($_) and # the output is passed to the -NewName parameter. … | Rename-Item -NewName { $_.Name -replace ‘\.txt$’,’.log’ } The call above shows an application of a delay-bind script-block ({ … }) argument, which is an implicit … Read more