lib/General.ps1
using namespace Microsoft.VisualBasic function About($hlp) {cls;help about_$hlp -ShowWindow} function Hlp($cmd) {Get-Command $cmd -} function Get-Script($fnNm){(Get-Item function:$fnNm).ScriptBlock} function Max {$o=$null;$args|%{if($_ -gt $o){$o=$_}};$o} function Min {$o=$null;$args|%{if($_ -le $o){$o=$_}};$o} function Ref {[ref]$args[0]} function MsgBox($msg,[MsgBoxStyle]$Sty=[MsgBoxStyle]::DefaultButton1+[MsgBoxStyle]::OkOnly,$tit=$null){[Interaction]::MsgBox($msg,$Sty,$tit)} |