Script directory for a PowerShell profile. https://blog.lksz.me/keeping-track-of-everything/#-mypsscriptroot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
228 B

  1. [CmdletBinding()]param(
  2. [string]$Filter,
  3. [switch]$NamesOnly
  4. )
  5. $local:rVal = [MyScript]::_GetValidValues($Filter,$true)
  6. if( $NamesOnly ) { return $rVal }
  7. return $rVal | ForEach-Object { Join-Path $MyPSScriptRoot "$_`.ps1" }