diff --git a/Out-EncodedCommand.ps1 b/Out-EncodedCommand.ps1 index 72d47e8..a27e0fb 100644 --- a/Out-EncodedCommand.ps1 +++ b/Out-EncodedCommand.ps1 @@ -71,12 +71,12 @@ http://www.exploit-monday.com #> [CmdletBinding( DefaultParameterSetName = 'FilePath')] Param ( - [Parameter(Position = 1, ValueFromPipeline = $True, ParameterSetName = 'ScriptBlock' )] + [Parameter(Position = 0, ValueFromPipeline = $True, ParameterSetName = 'ScriptBlock' )] [ValidateNotNullOrEmpty()] [ScriptBlock] $ScriptBlock, - [Parameter(Position = 1, ValueFromPipeline = $True, ParameterSetName = 'FilePath' )] + [Parameter(Position = 0, ParameterSetName = 'FilePath' )] [ValidateNotNullOrEmpty()] [String] $Path,