Functions/Set-PSWindowsTitle.ps1
function Set-PSWindowsTitle { param ( [Parameter(Mandatory = $true)] [ArgumentCompleter( { param ( $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters ) $possibleValues = @('HyperV', 'WI') $possibleValues | Where-Object { $_ -like "$wordToComplete*" } | ForEach-Object { $_ } })] [string] $Title ) $host.ui.RawUI.WindowTitle = $Title } |