title: Powershell attributes?
body: <p>is it possible to assign some metadata Attributes to powershell macros? I have the set of macros and I want to encapsulate them to logical groups. I imagine something like:</p>
  
  <pre><code>[UnitTest]
  function Do-Something()
  {
  ...
  }
  </code></pre> 
  
  <p>and then pass all loaded macros in runtime and filter them out like:</p>
  
  <pre><code>$macrosInRuntime = Get-Item function: 
  $unitTestMacros = $macrosInRuntime | 
      ? {$_.Attributes -contain "UnitTest"} # &lt;-- ???
  foreach ($macro in $unitTestMacros)
  {
     ....
  }
  </code></pre> 
  
  <p>I will be greatful for any help</p>