Created
          November 26, 2018 16:22 
        
      - 
      
- 
        Save Halkcyon/1f8454f05c1c8514484545762652de38 to your computer and use it in GitHub Desktop. 
    Proxy function/alias for Select-Object
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | $c = [System.Management.Automation.CommandMetadata]::new((Get-Command -Name Select-Object)) | |
| $c.Parameters.Remove('Property') | |
| $p = [System.Management.Automation.ProxyCommand]::Create($c) -split "`n" | |
| # -ExpandProperty | |
| $p[12] = $p[12] -replace '(?<=Parameter\()', 'Position=0, ' | |
| ${function:global:$} = [scriptblock]::Create($p) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment