PowerShell_Scripts/Get-MyScript.ps1

9 lines
228 B
PowerShell

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