In PowerShell I would write an optional Cmdlet parameter having a dynamically computed default value like this:
[Parameter(Position = 0)][string]$Destination = (Get-Location)
How would I do that when writing a binary PowerShell module?
In PowerShell I would write an optional Cmdlet parameter having a dynamically computed default value like this:
[Parameter(Position = 0)][string]$Destination = (Get-Location)
How would I do that when writing a binary PowerShell module?