Перейти из форума на сайт.

НовостиФайловые архивы
ПоискАктивные темыТоп лист
ПравилаКто в on-line?
Вход Забыли пароль? Первый раз на этом сайте? Регистрация
Компьютерный форум Ru.Board » Операционные системы » Microsoft Windows » PowerShell

Модерирует : KLASS, IFkO

KLASS (06-03-2018 00:43): Объединение тем по сценариям: Сценарии Windows
 Версия для печати • ПодписатьсяДобавить в закладки
На первую страницук этому сообщениюк последнему сообщению

   

KapralBel



Platinum Member
Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору


Код:
 
Function Write-Color
{
param ([string]$prmString)
$prmString = $prmString -Replace '<TBlackBlack>',' <TBlackBlack>'
$prmString = $prmString -Replace '<TBlackBlue>',' <TBlackBlue>'
$prmString = $prmString -Replace '<TBlackCyan>',' <TBlackCyan>'
$prmString = $prmString -Replace '<TBlackDarkBlue>',' <TBlackDarkBlue>'
$prmString = $prmString -Replace '<TBlackDarkCyan>',' <TBlackDarkCyan>'
$prmString = $prmString -Replace '<TBlackDarkGray>',' <TBlackDarkGray>'
$prmString = $prmString -Replace '<TBlackDarkGreen>',' <TBlackDarkGreen>'
$prmString = $prmString -Replace '<TBlackDarkMagenta>',' <TBlackDarkMagenta>'
$prmString = $prmString -Replace '<TBlackDarkRed>',' <TBlackDarkRed>'
$prmString = $prmString -Replace '<TBlackDarkYellow>',' <TBlackDarkYellow>'
$prmString = $prmString -Replace '<TBlackGray>',' <TBlackGray>'
$prmString = $prmString -Replace '<TBlackGreen>',' <TBlackGreen>'
$prmString = $prmString -Replace '<TBlackMagenta>',' <TBlackMagenta>'
$prmString = $prmString -Replace '<TBlackRed>',' <TBlackRed>'
$prmString = $prmString -Replace '<TBlackWhite>',' <TBlackWhite>'
$prmString = $prmString -Replace '<TBlackYellow>',' <TBlackYellow>'
$prmString = $prmString -Replace '<TBlack_>',' <TBlack_>'
$prmString = $prmString -Replace '<TBlueBlack>',' <TBlueBlack>'
$prmString = $prmString -Replace '<TBlueBlue>',' <TBlueBlue>'
$prmString = $prmString -Replace '<TBlueCyan>',' <TBlueCyan>'
$prmString = $prmString -Replace '<TBlueDarkBlue>',' <TBlueDarkBlue>'
$prmString = $prmString -Replace '<TBlueDarkCyan>',' <TBlueDarkCyan>'
$prmString = $prmString -Replace '<TBlueDarkGray>',' <TBlueDarkGray>'
$prmString = $prmString -Replace '<TBlueDarkGreen>',' <TBlueDarkGreen>'
$prmString = $prmString -Replace '<TBlueDarkMagenta>',' <TBlueDarkMagenta>'
$prmString = $prmString -Replace '<TBlueDarkRed>',' <TBlueDarkRed>'
$prmString = $prmString -Replace '<TBlueDarkYellow>',' <TBlueDarkYellow>'
$prmString = $prmString -Replace '<TBlueGray>',' <TBlueGray>'
$prmString = $prmString -Replace '<TBlueGreen>',' <TBlueGreen>'
$prmString = $prmString -Replace '<TBlueMagenta>',' <TBlueMagenta>'
$prmString = $prmString -Replace '<TBlueRed>',' <TBlueRed>'
$prmString = $prmString -Replace '<TBlueWhite>',' <TBlueWhite>'
$prmString = $prmString -Replace '<TBlueYellow>',' <TBlueYellow>'
$prmString = $prmString -Replace '<TBlue_>',' <TBlue_>'
$prmString = $prmString -Replace '<TCyanBlack>',' <TCyanBlack>'
$prmString = $prmString -Replace '<TCyanBlue>',' <TCyanBlue>'
$prmString = $prmString -Replace '<TCyanCyan>',' <TCyanCyan>'
$prmString = $prmString -Replace '<TCyanDarkBlue>',' <TCyanDarkBlue>'
$prmString = $prmString -Replace '<TCyanDarkCyan>',' <TCyanDarkCyan>'
$prmString = $prmString -Replace '<TCyanDarkGray>',' <TCyanDarkGray>'
$prmString = $prmString -Replace '<TCyanDarkGreen>',' <TCyanDarkGreen>'
$prmString = $prmString -Replace '<TCyanDarkMagenta>',' <TCyanDarkMagenta>'
$prmString = $prmString -Replace '<TCyanDarkRed>',' <TCyanDarkRed>'
$prmString = $prmString -Replace '<TCyanDarkYellow>',' <TCyanDarkYellow>'
$prmString = $prmString -Replace '<TCyanGray>',' <TCyanGray>'
$prmString = $prmString -Replace '<TCyanGreen>',' <TCyanGreen>'
$prmString = $prmString -Replace '<TCyanMagenta>',' <TCyanMagenta>'
$prmString = $prmString -Replace '<TCyanRed>',' <TCyanRed>'
$prmString = $prmString -Replace '<TCyanWhite>',' <TCyanWhite>'
$prmString = $prmString -Replace '<TCyanYellow>',' <TCyanYellow>'
$prmString = $prmString -Replace '<TCyan_>',' <TCyan_>'
$prmString = $prmString -Replace '<TDarkBlueBlack>',' <TDarkBlueBlack>'
$prmString = $prmString -Replace '<TDarkBlueBlue>',' <TDarkBlueBlue>'
$prmString = $prmString -Replace '<TDarkBlueCyan>',' <TDarkBlueCyan>'
$prmString = $prmString -Replace '<TDarkBlueDarkBlue>',' <TDarkBlueDarkBlue>'
$prmString = $prmString -Replace '<TDarkBlueDarkCyan>',' <TDarkBlueDarkCyan>'
$prmString = $prmString -Replace '<TDarkBlueDarkGray>',' <TDarkBlueDarkGray>'
$prmString = $prmString -Replace '<TDarkBlueDarkGreen>',' <TDarkBlueDarkGreen>'
$prmString = $prmString -Replace '<TDarkBlueDarkMagenta>',' <TDarkBlueDarkMagenta>'
$prmString = $prmString -Replace '<TDarkBlueDarkRed>',' <TDarkBlueDarkRed>'
$prmString = $prmString -Replace '<TDarkBlueDarkYellow>',' <TDarkBlueDarkYellow>'
$prmString = $prmString -Replace '<TDarkBlueGray>',' <TDarkBlueGray>'
$prmString = $prmString -Replace '<TDarkBlueGreen>',' <TDarkBlueGreen>'
$prmString = $prmString -Replace '<TDarkBlueMagenta>',' <TDarkBlueMagenta>'
$prmString = $prmString -Replace '<TDarkBlueRed>',' <TDarkBlueRed>'
$prmString = $prmString -Replace '<TDarkBlueWhite>',' <TDarkBlueWhite>'
$prmString = $prmString -Replace '<TDarkBlueYellow>',' <TDarkBlueYellow>'
$prmString = $prmString -Replace '<TDarkBlue_>',' <TDarkBlue_>'
$prmString = $prmString -Replace '<TDarkCyanBlack>',' <TDarkCyanBlack>'
$prmString = $prmString -Replace '<TDarkCyanBlue>',' <TDarkCyanBlue>'
$prmString = $prmString -Replace '<TDarkCyanCyan>',' <TDarkCyanCyan>'
$prmString = $prmString -Replace '<TDarkCyanDarkBlue>',' <TDarkCyanDarkBlue>'
$prmString = $prmString -Replace '<TDarkCyanDarkCyan>',' <TDarkCyanDarkCyan>'
$prmString = $prmString -Replace '<TDarkCyanDarkGray>',' <TDarkCyanDarkGray>'
$prmString = $prmString -Replace '<TDarkCyanDarkGreen>',' <TDarkCyanDarkGreen>'
$prmString = $prmString -Replace '<TDarkCyanDarkMagenta>',' <TDarkCyanDarkMagenta>'
$prmString = $prmString -Replace '<TDarkCyanDarkRed>',' <TDarkCyanDarkRed>'
$prmString = $prmString -Replace '<TDarkCyanDarkYellow>',' <TDarkCyanDarkYellow>'
$prmString = $prmString -Replace '<TDarkCyanGray>',' <TDarkCyanGray>'
$prmString = $prmString -Replace '<TDarkCyanGreen>',' <TDarkCyanGreen>'
$prmString = $prmString -Replace '<TDarkCyanMagenta>',' <TDarkCyanMagenta>'
$prmString = $prmString -Replace '<TDarkCyanRed>',' <TDarkCyanRed>'
$prmString = $prmString -Replace '<TDarkCyanWhite>',' <TDarkCyanWhite>'
$prmString = $prmString -Replace '<TDarkCyanYellow>',' <TDarkCyanYellow>'
$prmString = $prmString -Replace '<TDarkCyan_>',' <TDarkCyan_>'
$prmString = $prmString -Replace '<TDarkGrayBlack>',' <TDarkGrayBlack>'
$prmString = $prmString -Replace '<TDarkGrayBlue>',' <TDarkGrayBlue>'
$prmString = $prmString -Replace '<TDarkGrayCyan>',' <TDarkGrayCyan>'
$prmString = $prmString -Replace '<TDarkGrayDarkBlue>',' <TDarkGrayDarkBlue>'
$prmString = $prmString -Replace '<TDarkGrayDarkCyan>',' <TDarkGrayDarkCyan>'
$prmString = $prmString -Replace '<TDarkGrayDarkGray>',' <TDarkGrayDarkGray>'
$prmString = $prmString -Replace '<TDarkGrayDarkGreen>',' <TDarkGrayDarkGreen>'
$prmString = $prmString -Replace '<TDarkGrayDarkMagenta>',' <TDarkGrayDarkMagenta>'
$prmString = $prmString -Replace '<TDarkGrayDarkRed>',' <TDarkGrayDarkRed>'
$prmString = $prmString -Replace '<TDarkGrayDarkYellow>',' <TDarkGrayDarkYellow>'
$prmString = $prmString -Replace '<TDarkGrayGray>',' <TDarkGrayGray>'
$prmString = $prmString -Replace '<TDarkGrayGreen>',' <TDarkGrayGreen>'
$prmString = $prmString -Replace '<TDarkGrayMagenta>',' <TDarkGrayMagenta>'
$prmString = $prmString -Replace '<TDarkGrayRed>',' <TDarkGrayRed>'
$prmString = $prmString -Replace '<TDarkGrayWhite>',' <TDarkGrayWhite>'
$prmString = $prmString -Replace '<TDarkGrayYellow>',' <TDarkGrayYellow>'
$prmString = $prmString -Replace '<TDarkGray_>',' <TDarkGray_>'
$prmString = $prmString -Replace '<TDarkGreenBlack>',' <TDarkGreenBlack>'
$prmString = $prmString -Replace '<TDarkGreenBlue>',' <TDarkGreenBlue>'
$prmString = $prmString -Replace '<TDarkGreenCyan>',' <TDarkGreenCyan>'
$prmString = $prmString -Replace '<TDarkGreenDarkBlue>',' <TDarkGreenDarkBlue>'
$prmString = $prmString -Replace '<TDarkGreenDarkCyan>',' <TDarkGreenDarkCyan>'
$prmString = $prmString -Replace '<TDarkGreenDarkGray>',' <TDarkGreenDarkGray>'
$prmString = $prmString -Replace '<TDarkGreenDarkGreen>',' <TDarkGreenDarkGreen>'
$prmString = $prmString -Replace '<TDarkGreenDarkMagenta>',' <TDarkGreenDarkMagenta>'
$prmString = $prmString -Replace '<TDarkGreenDarkRed>',' <TDarkGreenDarkRed>'
$prmString = $prmString -Replace '<TDarkGreenDarkYellow>',' <TDarkGreenDarkYellow>'
$prmString = $prmString -Replace '<TDarkGreenGray>',' <TDarkGreenGray>'
$prmString = $prmString -Replace '<TDarkGreenGreen>',' <TDarkGreenGreen>'
$prmString = $prmString -Replace '<TDarkGreenMagenta>',' <TDarkGreenMagenta>'
$prmString = $prmString -Replace '<TDarkGreenRed>',' <TDarkGreenRed>'
$prmString = $prmString -Replace '<TDarkGreenWhite>',' <TDarkGreenWhite>'
$prmString = $prmString -Replace '<TDarkGreenYellow>',' <TDarkGreenYellow>'
$prmString = $prmString -Replace '<TDarkGreen_>',' <TDarkGreen_>'
$prmString = $prmString -Replace '<TDarkMagentaBlack>',' <TDarkMagentaBlack>'
$prmString = $prmString -Replace '<TDarkMagentaBlue>',' <TDarkMagentaBlue>'
$prmString = $prmString -Replace '<TDarkMagentaCyan>',' <TDarkMagentaCyan>'
$prmString = $prmString -Replace '<TDarkMagentaDarkBlue>',' <TDarkMagentaDarkBlue>'
$prmString = $prmString -Replace '<TDarkMagentaDarkCyan>',' <TDarkMagentaDarkCyan>'
$prmString = $prmString -Replace '<TDarkMagentaDarkGray>',' <TDarkMagentaDarkGray>'
$prmString = $prmString -Replace '<TDarkMagentaDarkGreen>',' <TDarkMagentaDarkGreen>'
$prmString = $prmString -Replace '<TDarkMagentaDarkMagenta>',' <TDarkMagentaDarkMagenta>'
$prmString = $prmString -Replace '<TDarkMagentaDarkRed>',' <TDarkMagentaDarkRed>'
$prmString = $prmString -Replace '<TDarkMagentaDarkYellow>',' <TDarkMagentaDarkYellow>'
$prmString = $prmString -Replace '<TDarkMagentaGray>',' <TDarkMagentaGray>'
$prmString = $prmString -Replace '<TDarkMagentaGreen>',' <TDarkMagentaGreen>'
$prmString = $prmString -Replace '<TDarkMagentaMagenta>',' <TDarkMagentaMagenta>'
$prmString = $prmString -Replace '<TDarkMagentaRed>',' <TDarkMagentaRed>'
$prmString = $prmString -Replace '<TDarkMagentaWhite>',' <TDarkMagentaWhite>'
$prmString = $prmString -Replace '<TDarkMagentaYellow>',' <TDarkMagentaYellow>'
$prmString = $prmString -Replace '<TDarkMagenta_>',' <TDarkMagenta_>'
$prmString = $prmString -Replace '<TDarkRedBlack>',' <TDarkRedBlack>'
$prmString = $prmString -Replace '<TDarkRedBlue>',' <TDarkRedBlue>'
$prmString = $prmString -Replace '<TDarkRedCyan>',' <TDarkRedCyan>'
$prmString = $prmString -Replace '<TDarkRedDarkBlue>',' <TDarkRedDarkBlue>'
$prmString = $prmString -Replace '<TDarkRedDarkCyan>',' <TDarkRedDarkCyan>'
$prmString = $prmString -Replace '<TDarkRedDarkGray>',' <TDarkRedDarkGray>'
$prmString = $prmString -Replace '<TDarkRedDarkGreen>',' <TDarkRedDarkGreen>'
$prmString = $prmString -Replace '<TDarkRedDarkMagenta>',' <TDarkRedDarkMagenta>'
$prmString = $prmString -Replace '<TDarkRedDarkRed>',' <TDarkRedDarkRed>'
$prmString = $prmString -Replace '<TDarkRedDarkYellow>',' <TDarkRedDarkYellow>'
$prmString = $prmString -Replace '<TDarkRedGray>',' <TDarkRedGray>'
$prmString = $prmString -Replace '<TDarkRedGreen>',' <TDarkRedGreen>'
$prmString = $prmString -Replace '<TDarkRedMagenta>',' <TDarkRedMagenta>'
$prmString = $prmString -Replace '<TDarkRedRed>',' <TDarkRedRed>'
$prmString = $prmString -Replace '<TDarkRedWhite>',' <TDarkRedWhite>'
$prmString = $prmString -Replace '<TDarkRedYellow>',' <TDarkRedYellow>'
$prmString = $prmString -Replace '<TDarkRed_>',' <TDarkRed_>'
$prmString = $prmString -Replace '<TDarkYellowBlack>',' <TDarkYellowBlack>'
$prmString = $prmString -Replace '<TDarkYellowBlue>',' <TDarkYellowBlue>'
$prmString = $prmString -Replace '<TDarkYellowCyan>',' <TDarkYellowCyan>'
$prmString = $prmString -Replace '<TDarkYellowDarkBlue>',' <TDarkYellowDarkBlue>'
$prmString = $prmString -Replace '<TDarkYellowDarkCyan>',' <TDarkYellowDarkCyan>'
$prmString = $prmString -Replace '<TDarkYellowDarkGray>',' <TDarkYellowDarkGray>'
$prmString = $prmString -Replace '<TDarkYellowDarkGreen>',' <TDarkYellowDarkGreen>'
$prmString = $prmString -Replace '<TDarkYellowDarkMagenta>',' <TDarkYellowDarkMagenta>'
$prmString = $prmString -Replace '<TDarkYellowDarkRed>',' <TDarkYellowDarkRed>'
$prmString = $prmString -Replace '<TDarkYellowDarkYellow>',' <TDarkYellowDarkYellow>'
$prmString = $prmString -Replace '<TDarkYellowGray>',' <TDarkYellowGray>'
$prmString = $prmString -Replace '<TDarkYellowGreen>',' <TDarkYellowGreen>'
$prmString = $prmString -Replace '<TDarkYellowMagenta>',' <TDarkYellowMagenta>'
$prmString = $prmString -Replace '<TDarkYellowRed>',' <TDarkYellowRed>'
$prmString = $prmString -Replace '<TDarkYellowWhite>',' <TDarkYellowWhite>'
$prmString = $prmString -Replace '<TDarkYellowYellow>',' <TDarkYellowYellow>'
$prmString = $prmString -Replace '<TDarkYellow_>',' <TDarkYellow_>'
$prmString = $prmString -Replace '<TGrayBlack>',' <TGrayBlack>'
$prmString = $prmString -Replace '<TGrayBlue>',' <TGrayBlue>'
$prmString = $prmString -Replace '<TGrayCyan>',' <TGrayCyan>'
$prmString = $prmString -Replace '<TGrayDarkBlue>',' <TGrayDarkBlue>'
$prmString = $prmString -Replace '<TGrayDarkCyan>',' <TGrayDarkCyan>'
$prmString = $prmString -Replace '<TGrayDarkGray>',' <TGrayDarkGray>'
$prmString = $prmString -Replace '<TGrayDarkGreen>',' <TGrayDarkGreen>'
$prmString = $prmString -Replace '<TGrayDarkMagenta>',' <TGrayDarkMagenta>'
$prmString = $prmString -Replace '<TGrayDarkRed>',' <TGrayDarkRed>'
$prmString = $prmString -Replace '<TGrayDarkYellow>',' <TGrayDarkYellow>'
$prmString = $prmString -Replace '<TGrayGray>',' <TGrayGray>'
$prmString = $prmString -Replace '<TGrayGreen>',' <TGrayGreen>'
$prmString = $prmString -Replace '<TGrayMagenta>',' <TGrayMagenta>'
$prmString = $prmString -Replace '<TGrayRed>',' <TGrayRed>'
$prmString = $prmString -Replace '<TGrayWhite>',' <TGrayWhite>'
$prmString = $prmString -Replace '<TGrayYellow>',' <TGrayYellow>'
$prmString = $prmString -Replace '<TGray_>',' <TGray_>'
$prmString = $prmString -Replace '<TGreenBlack>',' <TGreenBlack>'
$prmString = $prmString -Replace '<TGreenBlue>',' <TGreenBlue>'
$prmString = $prmString -Replace '<TGreenCyan>',' <TGreenCyan>'
$prmString = $prmString -Replace '<TGreenDarkBlue>',' <TGreenDarkBlue>'
$prmString = $prmString -Replace '<TGreenDarkCyan>',' <TGreenDarkCyan>'
$prmString = $prmString -Replace '<TGreenDarkGray>',' <TGreenDarkGray>'
$prmString = $prmString -Replace '<TGreenDarkGreen>',' <TGreenDarkGreen>'
$prmString = $prmString -Replace '<TGreenDarkMagenta>',' <TGreenDarkMagenta>'
$prmString = $prmString -Replace '<TGreenDarkRed>',' <TGreenDarkRed>'
$prmString = $prmString -Replace '<TGreenDarkYellow>',' <TGreenDarkYellow>'
$prmString = $prmString -Replace '<TGreenGray>',' <TGreenGray>'
$prmString = $prmString -Replace '<TGreenGreen>',' <TGreenGreen>'
$prmString = $prmString -Replace '<TGreenMagenta>',' <TGreenMagenta>'
$prmString = $prmString -Replace '<TGreenRed>',' <TGreenRed>'
$prmString = $prmString -Replace '<TGreenWhite>',' <TGreenWhite>'
$prmString = $prmString -Replace '<TGreenYellow>',' <TGreenYellow>'
$prmString = $prmString -Replace '<TGreen_>',' <TGreen_>'
$prmString = $prmString -Replace '<TMagentaBlack>',' <TMagentaBlack>'
$prmString = $prmString -Replace '<TMagentaBlue>',' <TMagentaBlue>'
$prmString = $prmString -Replace '<TMagentaCyan>',' <TMagentaCyan>'
$prmString = $prmString -Replace '<TMagentaDarkBlue>',' <TMagentaDarkBlue>'
$prmString = $prmString -Replace '<TMagentaDarkCyan>',' <TMagentaDarkCyan>'
$prmString = $prmString -Replace '<TMagentaDarkGray>',' <TMagentaDarkGray>'
$prmString = $prmString -Replace '<TMagentaDarkGreen>',' <TMagentaDarkGreen>'
$prmString = $prmString -Replace '<TMagentaDarkMagenta>',' <TMagentaDarkMagenta>'
$prmString = $prmString -Replace '<TMagentaDarkRed>',' <TMagentaDarkRed>'
$prmString = $prmString -Replace '<TMagentaDarkYellow>',' <TMagentaDarkYellow>'
$prmString = $prmString -Replace '<TMagentaGray>',' <TMagentaGray>'
$prmString = $prmString -Replace '<TMagentaGreen>',' <TMagentaGreen>'
$prmString = $prmString -Replace '<TMagentaMagenta>',' <TMagentaMagenta>'
$prmString = $prmString -Replace '<TMagentaRed>',' <TMagentaRed>'
$prmString = $prmString -Replace '<TMagentaWhite>',' <TMagentaWhite>'
$prmString = $prmString -Replace '<TMagentaYellow>',' <TMagentaYellow>'
$prmString = $prmString -Replace '<TMagenta_>',' <TMagenta_>'
$prmString = $prmString -Replace '<TRedBlack>',' <TRedBlack>'
$prmString = $prmString -Replace '<TRedBlue>',' <TRedBlue>'
$prmString = $prmString -Replace '<TRedCyan>',' <TRedCyan>'
$prmString = $prmString -Replace '<TRedDarkBlue>',' <TRedDarkBlue>'
$prmString = $prmString -Replace '<TRedDarkCyan>',' <TRedDarkCyan>'
$prmString = $prmString -Replace '<TRedDarkGray>',' <TRedDarkGray>'
$prmString = $prmString -Replace '<TRedDarkGreen>',' <TRedDarkGreen>'
$prmString = $prmString -Replace '<TRedDarkMagenta>',' <TRedDarkMagenta>'
$prmString = $prmString -Replace '<TRedDarkRed>',' <TRedDarkRed>'
$prmString = $prmString -Replace '<TRedDarkYellow>',' <TRedDarkYellow>'
$prmString = $prmString -Replace '<TRedGray>',' <TRedGray>'
$prmString = $prmString -Replace '<TRedGreen>',' <TRedGreen>'
$prmString = $prmString -Replace '<TRedMagenta>',' <TRedMagenta>'
$prmString = $prmString -Replace '<TRedRed>',' <TRedRed>'
$prmString = $prmString -Replace '<TRedWhite>',' <TRedWhite>'
$prmString = $prmString -Replace '<TRedYellow>',' <TRedYellow>'
$prmString = $prmString -Replace '<TRed_>',' <TRed_>'
$prmString = $prmString -Replace '<TWhiteBlack>',' <TWhiteBlack>'
$prmString = $prmString -Replace '<TWhiteBlue>',' <TWhiteBlue>'
$prmString = $prmString -Replace '<TWhiteCyan>',' <TWhiteCyan>'
$prmString = $prmString -Replace '<TWhiteDarkBlue>',' <TWhiteDarkBlue>'
$prmString = $prmString -Replace '<TWhiteDarkCyan>',' <TWhiteDarkCyan>'
$prmString = $prmString -Replace '<TWhiteDarkGray>',' <TWhiteDarkGray>'
$prmString = $prmString -Replace '<TWhiteDarkGreen>',' <TWhiteDarkGreen>'
$prmString = $prmString -Replace '<TWhiteDarkMagenta>',' <TWhiteDarkMagenta>'
$prmString = $prmString -Replace '<TWhiteDarkRed>',' <TWhiteDarkRed>'
$prmString = $prmString -Replace '<TWhiteDarkYellow>',' <TWhiteDarkYellow>'
$prmString = $prmString -Replace '<TWhiteGray>',' <TWhiteGray>'
$prmString = $prmString -Replace '<TWhiteGreen>',' <TWhiteGreen>'
$prmString = $prmString -Replace '<TWhiteMagenta>',' <TWhiteMagenta>'
$prmString = $prmString -Replace '<TWhiteRed>',' <TWhiteRed>'
$prmString = $prmString -Replace '<TWhiteWhite>',' <TWhiteWhite>'
$prmString = $prmString -Replace '<TWhiteYellow>',' <TWhiteYellow>'
$prmString = $prmString -Replace '<TWhite_>',' <TWhite_>'
$prmString = $prmString -Replace '<TYellowBlack>',' <TYellowBlack>'
$prmString = $prmString -Replace '<TYellowBlue>',' <TYellowBlue>'
$prmString = $prmString -Replace '<TYellowCyan>',' <TYellowCyan>'
$prmString = $prmString -Replace '<TYellowDarkBlue>',' <TYellowDarkBlue>'
$prmString = $prmString -Replace '<TYellowDarkCyan>',' <TYellowDarkCyan>'
$prmString = $prmString -Replace '<TYellowDarkGray>',' <TYellowDarkGray>'
$prmString = $prmString -Replace '<TYellowDarkGreen>',' <TYellowDarkGreen>'
$prmString = $prmString -Replace '<TYellowDarkMagenta>',' <TYellowDarkMagenta>'
$prmString = $prmString -Replace '<TYellowDarkRed>',' <TYellowDarkRed>'
$prmString = $prmString -Replace '<TYellowDarkYellow>',' <TYellowDarkYellow>'
$prmString = $prmString -Replace '<TYellowGray>',' <TYellowGray>'
$prmString = $prmString -Replace '<TYellowGreen>',' <TYellowGreen>'
$prmString = $prmString -Replace '<TYellowMagenta>',' <TYellowMagenta>'
$prmString = $prmString -Replace '<TYellowRed>',' <TYellowRed>'
$prmString = $prmString -Replace '<TYellowWhite>',' <TYellowWhite>'
$prmString = $prmString -Replace '<TYellowYellow>',' <TYellowYellow>'
$prmString = $prmString -Replace '<TYellow_>',' <TYellow_>'
$prmString = $prmString -Replace '<T_Black>',' <T_Black>'
$prmString = $prmString -Replace '<T_Blue>',' <T_Blue>'
$prmString = $prmString -Replace '<T_Cyan>',' <T_Cyan>'
$prmString = $prmString -Replace '<T_DarkBlue>',' <T_DarkBlue>'
$prmString = $prmString -Replace '<T_DarkCyan>',' <T_DarkCyan>'
$prmString = $prmString -Replace '<T_DarkGray>',' <T_DarkGray>'
$prmString = $prmString -Replace '<T_DarkGreen>',' <T_DarkGreen>'
$prmString = $prmString -Replace '<T_DarkMagenta>',' <T_DarkMagenta>'
$prmString = $prmString -Replace '<T_DarkRed>',' <T_DarkRed>'
$prmString = $prmString -Replace '<T_DarkYellow>',' <T_DarkYellow>'
$prmString = $prmString -Replace '<T_Gray>',' <T_Gray>'
$prmString = $prmString -Replace '<T_Green>',' <T_Green>'
$prmString = $prmString -Replace '<T_Magenta>',' <T_Magenta>'
$prmString = $prmString -Replace '<T_Red>',' <T_Red>'
$prmString = $prmString -Replace '<T_White>',' <T_White>'
$prmString = $prmString -Replace '<T_Yellow>',' <T_Yellow>'
$prmString = $prmString -Replace '<T__>',' <T__>'
 
ForEach ($s in $prmString.Split(" "))
{
    $str='',''
    If ($s.contains('>'))
    {
        $str=$s.Split(">",2)
    } Else
    {
        $str[1]=$s
    }
    $Str[0]=$Str[0].Replace('<','')
    Switch ($Str[0])
    {
        TBlackBlack {Write-Host $Str[1] -NoNewLine -Fo Black -Ba Black;break}
        TBlackBlue {Write-Host $Str[1] -NoNewLine -Fo Black -Ba Blue;break}
        TBlackCyan {Write-Host $Str[1] -NoNewLine -Fo Black -Ba Cyan;break}
        TBlackDarkBlue {Write-Host $Str[1] -NoNewLine -Fo Black -Ba DarkBlue;break}
        TBlackDarkCyan {Write-Host $Str[1] -NoNewLine -Fo Black -Ba DarkCyan;break}
        TBlackDarkGray {Write-Host $Str[1] -NoNewLine -Fo Black -Ba DarkGray;break}
        TBlackDarkGreen {Write-Host $Str[1] -NoNewLine -Fo Black -Ba DarkGreen;break}
        TBlackDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo Black -Ba DarkMagenta;break}
        TBlackDarkRed {Write-Host $Str[1] -NoNewLine -Fo Black -Ba DarkRed;break}
        TBlackDarkYellow {Write-Host $Str[1] -NoNewLine -Fo Black -Ba DarkYellow;break}
        TBlackGray {Write-Host $Str[1] -NoNewLine -Fo Black -Ba Gray;break}
        TBlackGreen {Write-Host $Str[1] -NoNewLine -Fo Black -Ba Green;break}
        TBlackMagenta {Write-Host $Str[1] -NoNewLine -Fo Black -Ba Magenta;break}
        TBlackRed {Write-Host $Str[1] -NoNewLine -Fo Black -Ba Red;break}
        TBlackWhite {Write-Host $Str[1] -NoNewLine -Fo Black -Ba White;break}
        TBlackYellow {Write-Host $Str[1] -NoNewLine -Fo Black -Ba Yellow;break}
        TBlack_ {Write-Host $Str[1] -NoNewLine -Fo Black;break}
        TBlueBlack {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba Black;break}
        TBlueBlue {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba Blue;break}
        TBlueCyan {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba Cyan;break}
        TBlueDarkBlue {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba DarkBlue;break}
        TBlueDarkCyan {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba DarkCyan;break}
        TBlueDarkGray {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba DarkGray;break}
        TBlueDarkGreen {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba DarkGreen;break}
        TBlueDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba DarkMagenta;break}
        TBlueDarkRed {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba DarkRed;break}
        TBlueDarkYellow {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba DarkYellow;break}
        TBlueGray {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba Gray;break}
        TBlueGreen {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba Green;break}
        TBlueMagenta {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba Magenta;break}
        TBlueRed {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba Red;break}
        TBlueWhite {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba White;break}
        TBlueYellow {Write-Host $Str[1] -NoNewLine -Fo Blue -Ba Yellow;break}
        TBlue_ {Write-Host $Str[1] -NoNewLine -Fo Blue;break}
        TCyanBlack {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba Black;break}
        TCyanBlue {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba Blue;break}
        TCyanCyan {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba Cyan;break}
        TCyanDarkBlue {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba DarkBlue;break}
        TCyanDarkCyan {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba DarkCyan;break}
        TCyanDarkGray {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba DarkGray;break}
        TCyanDarkGreen {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba DarkGreen;break}
        TCyanDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba DarkMagenta;break}
        TCyanDarkRed {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba DarkRed;break}
        TCyanDarkYellow {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba DarkYellow;break}
        TCyanGray {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba Gray;break}
        TCyanGreen {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba Green;break}
        TCyanMagenta {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba Magenta;break}
        TCyanRed {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba Red;break}
        TCyanWhite {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba White;break}
        TCyanYellow {Write-Host $Str[1] -NoNewLine -Fo Cyan -Ba Yellow;break}
        TCyan_ {Write-Host $Str[1] -NoNewLine -Fo Cyan;break}
        TDarkBlueBlack {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba Black;break}
        TDarkBlueBlue {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba Blue;break}
        TDarkBlueCyan {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba Cyan;break}
        TDarkBlueDarkBlue {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba DarkBlue;break}
        TDarkBlueDarkCyan {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba DarkCyan;break}
        TDarkBlueDarkGray {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba DarkGray;break}
        TDarkBlueDarkGreen {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba DarkGreen;break}
        TDarkBlueDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba DarkMagenta;break}
        TDarkBlueDarkRed {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba DarkRed;break}
        TDarkBlueDarkYellow {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba DarkYellow;break}
        TDarkBlueGray {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba Gray;break}
        TDarkBlueGreen {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba Green;break}
        TDarkBlueMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba Magenta;break}
        TDarkBlueRed {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba Red;break}
        TDarkBlueWhite {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba White;break}
        TDarkBlueYellow {Write-Host $Str[1] -NoNewLine -Fo DarkBlue -Ba Yellow;break}
        TDarkBlue_ {Write-Host $Str[1] -NoNewLine -Fo DarkBlue;break}
        TDarkCyanBlack {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba Black;break}
        TDarkCyanBlue {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba Blue;break}
        TDarkCyanCyan {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba Cyan;break}
        TDarkCyanDarkBlue {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba DarkBlue;break}
        TDarkCyanDarkCyan {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba DarkCyan;break}
        TDarkCyanDarkGray {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba DarkGray;break}
        TDarkCyanDarkGreen {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba DarkGreen;break}
        TDarkCyanDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba DarkMagenta;break}
        TDarkCyanDarkRed {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba DarkRed;break}
        TDarkCyanDarkYellow {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba DarkYellow;break}
        TDarkCyanGray {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba Gray;break}
        TDarkCyanGreen {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba Green;break}
        TDarkCyanMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba Magenta;break}
        TDarkCyanRed {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba Red;break}
        TDarkCyanWhite {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba White;break}
        TDarkCyanYellow {Write-Host $Str[1] -NoNewLine -Fo DarkCyan -Ba Yellow;break}
        TDarkCyan_ {Write-Host $Str[1] -NoNewLine -Fo DarkCyan;break}
        TDarkGrayBlack {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba Black;break}
        TDarkGrayBlue {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba Blue;break}
        TDarkGrayCyan {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba Cyan;break}
        TDarkGrayDarkBlue {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba DarkBlue;break}
        TDarkGrayDarkCyan {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba DarkCyan;break}
        TDarkGrayDarkGray {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba DarkGray;break}
        TDarkGrayDarkGreen {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba DarkGreen;break}
        TDarkGrayDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba DarkMagenta;break}
        TDarkGrayDarkRed {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba DarkRed;break}
        TDarkGrayDarkYellow {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba DarkYellow;break}
        TDarkGrayGray {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba Gray;break}
        TDarkGrayGreen {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba Green;break}
        TDarkGrayMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba Magenta;break}
        TDarkGrayRed {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba Red;break}
        TDarkGrayWhite {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba White;break}
        TDarkGrayYellow {Write-Host $Str[1] -NoNewLine -Fo DarkGray -Ba Yellow;break}
        TDarkGray_ {Write-Host $Str[1] -NoNewLine -Fo DarkGray;break}
        TDarkGreenBlack {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba Black;break}
        TDarkGreenBlue {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba Blue;break}
        TDarkGreenCyan {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba Cyan;break}
        TDarkGreenDarkBlue {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba DarkBlue;break}
        TDarkGreenDarkCyan {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba DarkCyan;break}
        TDarkGreenDarkGray {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba DarkGray;break}
        TDarkGreenDarkGreen {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba DarkGreen;break}
        TDarkGreenDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba DarkMagenta;break}
        TDarkGreenDarkRed {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba DarkRed;break}
        TDarkGreenDarkYellow {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba DarkYellow;break}
        TDarkGreenGray {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba Gray;break}
        TDarkGreenGreen {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba Green;break}
        TDarkGreenMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba Magenta;break}
        TDarkGreenRed {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba Red;break}
        TDarkGreenWhite {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba White;break}
        TDarkGreenYellow {Write-Host $Str[1] -NoNewLine -Fo DarkGreen -Ba Yellow;break}
        TDarkGreen_ {Write-Host $Str[1] -NoNewLine -Fo DarkGreen;break}
        TDarkMagentaBlack {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba Black;break}
        TDarkMagentaBlue {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba Blue;break}
        TDarkMagentaCyan {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba Cyan;break}
        TDarkMagentaDarkBlue {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba DarkBlue;break}
        TDarkMagentaDarkCyan {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba DarkCyan;break}
        TDarkMagentaDarkGray {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba DarkGray;break}
        TDarkMagentaDarkGreen {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba DarkGreen;break}
        TDarkMagentaDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba DarkMagenta;break}
        TDarkMagentaDarkRed {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba DarkRed;break}
        TDarkMagentaDarkYellow {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba DarkYellow;break}
        TDarkMagentaGray {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba Gray;break}
        TDarkMagentaGreen {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba Green;break}
        TDarkMagentaMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba Magenta;break}
        TDarkMagentaRed {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba Red;break}
        TDarkMagentaWhite {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba White;break}
        TDarkMagentaYellow {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta -Ba Yellow;break}
        TDarkMagenta_ {Write-Host $Str[1] -NoNewLine -Fo DarkMagenta;break}
        TDarkRedBlack {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba Black;break}
        TDarkRedBlue {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba Blue;break}
        TDarkRedCyan {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba Cyan;break}
        TDarkRedDarkBlue {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba DarkBlue;break}
        TDarkRedDarkCyan {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba DarkCyan;break}
        TDarkRedDarkGray {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba DarkGray;break}
        TDarkRedDarkGreen {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba DarkGreen;break}
        TDarkRedDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba DarkMagenta;break}
        TDarkRedDarkRed {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba DarkRed;break}
        TDarkRedDarkYellow {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba DarkYellow;break}
        TDarkRedGray {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba Gray;break}
        TDarkRedGreen {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba Green;break}
        TDarkRedMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba Magenta;break}
        TDarkRedRed {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba Red;break}
        TDarkRedWhite {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba White;break}
        TDarkRedYellow {Write-Host $Str[1] -NoNewLine -Fo DarkRed -Ba Yellow;break}
        TDarkRed_ {Write-Host $Str[1] -NoNewLine -Fo DarkRed;break}
        TDarkYellowBlack {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba Black;break}
        TDarkYellowBlue {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba Blue;break}
        TDarkYellowCyan {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba Cyan;break}
        TDarkYellowDarkBlue {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba DarkBlue;break}
        TDarkYellowDarkCyan {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba DarkCyan;break}
        TDarkYellowDarkGray {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba DarkGray;break}
        TDarkYellowDarkGreen {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba DarkGreen;break}
        TDarkYellowDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba DarkMagenta;break}
        TDarkYellowDarkRed {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba DarkRed;break}
        TDarkYellowDarkYellow {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba DarkYellow;break}
        TDarkYellowGray {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba Gray;break}
        TDarkYellowGreen {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba Green;break}
        TDarkYellowMagenta {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba Magenta;break}
        TDarkYellowRed {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba Red;break}
        TDarkYellowWhite {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba White;break}
        TDarkYellowYellow {Write-Host $Str[1] -NoNewLine -Fo DarkYellow -Ba Yellow;break}
        TDarkYellow_ {Write-Host $Str[1] -NoNewLine -Fo DarkYellow;break}
        TGrayBlack {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba Black;break}
        TGrayBlue {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba Blue;break}
        TGrayCyan {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba Cyan;break}
        TGrayDarkBlue {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba DarkBlue;break}
        TGrayDarkCyan {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba DarkCyan;break}
        TGrayDarkGray {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba DarkGray;break}
        TGrayDarkGreen {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba DarkGreen;break}
        TGrayDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba DarkMagenta;break}
        TGrayDarkRed {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba DarkRed;break}
        TGrayDarkYellow {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba DarkYellow;break}
        TGrayGray {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba Gray;break}
        TGrayGreen {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba Green;break}
        TGrayMagenta {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba Magenta;break}
        TGrayRed {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba Red;break}
        TGrayWhite {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba White;break}
        TGrayYellow {Write-Host $Str[1] -NoNewLine -Fo Gray -Ba Yellow;break}
        TGray_ {Write-Host $Str[1] -NoNewLine -Fo Gray;break}
        TGreenBlack {Write-Host $Str[1] -NoNewLine -Fo Green -Ba Black;break}
        TGreenBlue {Write-Host $Str[1] -NoNewLine -Fo Green -Ba Blue;break}
        TGreenCyan {Write-Host $Str[1] -NoNewLine -Fo Green -Ba Cyan;break}
        TGreenDarkBlue {Write-Host $Str[1] -NoNewLine -Fo Green -Ba DarkBlue;break}
        TGreenDarkCyan {Write-Host $Str[1] -NoNewLine -Fo Green -Ba DarkCyan;break}
        TGreenDarkGray {Write-Host $Str[1] -NoNewLine -Fo Green -Ba DarkGray;break}
        TGreenDarkGreen {Write-Host $Str[1] -NoNewLine -Fo Green -Ba DarkGreen;break}
        TGreenDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo Green -Ba DarkMagenta;break}
        TGreenDarkRed {Write-Host $Str[1] -NoNewLine -Fo Green -Ba DarkRed;break}
        TGreenDarkYellow {Write-Host $Str[1] -NoNewLine -Fo Green -Ba DarkYellow;break}
        TGreenGray {Write-Host $Str[1] -NoNewLine -Fo Green -Ba Gray;break}
        TGreenGreen {Write-Host $Str[1] -NoNewLine -Fo Green -Ba Green;break}
        TGreenMagenta {Write-Host $Str[1] -NoNewLine -Fo Green -Ba Magenta;break}
        TGreenRed {Write-Host $Str[1] -NoNewLine -Fo Green -Ba Red;break}
        TGreenWhite {Write-Host $Str[1] -NoNewLine -Fo Green -Ba White;break}
        TGreenYellow {Write-Host $Str[1] -NoNewLine -Fo Green -Ba Yellow;break}
        TGreen_ {Write-Host $Str[1] -NoNewLine -Fo Green;break}
        TMagentaBlack {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba Black;break}
        TMagentaBlue {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba Blue;break}
        TMagentaCyan {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba Cyan;break}
        TMagentaDarkBlue {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba DarkBlue;break}
        TMagentaDarkCyan {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba DarkCyan;break}
        TMagentaDarkGray {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba DarkGray;break}
        TMagentaDarkGreen {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba DarkGreen;break}
        TMagentaDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba DarkMagenta;break}
        TMagentaDarkRed {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba DarkRed;break}
        TMagentaDarkYellow {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba DarkYellow;break}
        TMagentaGray {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba Gray;break}
        TMagentaGreen {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba Green;break}
        TMagentaMagenta {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba Magenta;break}
        TMagentaRed {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba Red;break}
        TMagentaWhite {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba White;break}
        TMagentaYellow {Write-Host $Str[1] -NoNewLine -Fo Magenta -Ba Yellow;break}
        TMagenta_ {Write-Host $Str[1] -NoNewLine -Fo Magenta;break}
        TRedBlack {Write-Host $Str[1] -NoNewLine -Fo Red -Ba Black;break}
        TRedBlue {Write-Host $Str[1] -NoNewLine -Fo Red -Ba Blue;break}
        TRedCyan {Write-Host $Str[1] -NoNewLine -Fo Red -Ba Cyan;break}
        TRedDarkBlue {Write-Host $Str[1] -NoNewLine -Fo Red -Ba DarkBlue;break}
        TRedDarkCyan {Write-Host $Str[1] -NoNewLine -Fo Red -Ba DarkCyan;break}
        TRedDarkGray {Write-Host $Str[1] -NoNewLine -Fo Red -Ba DarkGray;break}
        TRedDarkGreen {Write-Host $Str[1] -NoNewLine -Fo Red -Ba DarkGreen;break}
        TRedDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo Red -Ba DarkMagenta;break}
        TRedDarkRed {Write-Host $Str[1] -NoNewLine -Fo Red -Ba DarkRed;break}
        TRedDarkYellow {Write-Host $Str[1] -NoNewLine -Fo Red -Ba DarkYellow;break}
        TRedGray {Write-Host $Str[1] -NoNewLine -Fo Red -Ba Gray;break}
        TRedGreen {Write-Host $Str[1] -NoNewLine -Fo Red -Ba Green;break}
        TRedMagenta {Write-Host $Str[1] -NoNewLine -Fo Red -Ba Magenta;break}
        TRedRed {Write-Host $Str[1] -NoNewLine -Fo Red -Ba Red;break}
        TRedWhite {Write-Host $Str[1] -NoNewLine -Fo Red -Ba White;break}
        TRedYellow {Write-Host $Str[1] -NoNewLine -Fo Red -Ba Yellow;break}
        TRed_ {Write-Host $Str[1] -NoNewLine -Fo Red;break}
        TWhiteBlack {Write-Host $Str[1] -NoNewLine -Fo White -Ba Black;break}
        TWhiteBlue {Write-Host $Str[1] -NoNewLine -Fo White -Ba Blue;break}
        TWhiteCyan {Write-Host $Str[1] -NoNewLine -Fo White -Ba Cyan;break}
        TWhiteDarkBlue {Write-Host $Str[1] -NoNewLine -Fo White -Ba DarkBlue;break}
        TWhiteDarkCyan {Write-Host $Str[1] -NoNewLine -Fo White -Ba DarkCyan;break}
        TWhiteDarkGray {Write-Host $Str[1] -NoNewLine -Fo White -Ba DarkGray;break}
        TWhiteDarkGreen {Write-Host $Str[1] -NoNewLine -Fo White -Ba DarkGreen;break}
        TWhiteDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo White -Ba DarkMagenta;break}
        TWhiteDarkRed {Write-Host $Str[1] -NoNewLine -Fo White -Ba DarkRed;break}
        TWhiteDarkYellow {Write-Host $Str[1] -NoNewLine -Fo White -Ba DarkYellow;break}
        TWhiteGray {Write-Host $Str[1] -NoNewLine -Fo White -Ba Gray;break}
        TWhiteGreen {Write-Host $Str[1] -NoNewLine -Fo White -Ba Green;break}
        TWhiteMagenta {Write-Host $Str[1] -NoNewLine -Fo White -Ba Magenta;break}
        TWhiteRed {Write-Host $Str[1] -NoNewLine -Fo White -Ba Red;break}
        TWhiteWhite {Write-Host $Str[1] -NoNewLine -Fo White -Ba White;break}
        TWhiteYellow {Write-Host $Str[1] -NoNewLine -Fo White -Ba Yellow;break}
        TWhite_ {Write-Host $Str[1] -NoNewLine -Fo White;break}
        TYellowBlack {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba Black;break}
        TYellowBlue {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba Blue;break}
        TYellowCyan {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba Cyan;break}
        TYellowDarkBlue {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba DarkBlue;break}
        TYellowDarkCyan {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba DarkCyan;break}
        TYellowDarkGray {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba DarkGray;break}
        TYellowDarkGreen {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba DarkGreen;break}
        TYellowDarkMagenta {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba DarkMagenta;break}
        TYellowDarkRed {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba DarkRed;break}
        TYellowDarkYellow {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba DarkYellow;break}
        TYellowGray {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba Gray;break}
        TYellowGreen {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba Green;break}
        TYellowMagenta {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba Magenta;break}
        TYellowRed {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba Red;break}
        TYellowWhite {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba White;break}
        TYellowYellow {Write-Host $Str[1] -NoNewLine -Fo Yellow -Ba Yellow;break}
        TYellow_ {Write-Host $Str[1] -NoNewLine -Fo Yellow;break}
        T_Black {Write-Host $Str[1] -NoNewLine  -Ba Black;break}
        T_Blue {Write-Host $Str[1] -NoNewLine  -Ba Blue;break}
        T_Cyan {Write-Host $Str[1] -NoNewLine  -Ba Cyan;break}
        T_DarkBlue {Write-Host $Str[1] -NoNewLine  -Ba DarkBlue;break}
        T_DarkCyan {Write-Host $Str[1] -NoNewLine  -Ba DarkCyan;break}
        T_DarkGray {Write-Host $Str[1] -NoNewLine  -Ba DarkGray;break}
        T_DarkGreen {Write-Host $Str[1] -NoNewLine  -Ba DarkGreen;break}
        T_DarkMagenta {Write-Host $Str[1] -NoNewLine  -Ba DarkMagenta;break}
        T_DarkRed {Write-Host $Str[1] -NoNewLine  -Ba DarkRed;break}
        T_DarkYellow {Write-Host $Str[1] -NoNewLine  -Ba DarkYellow;break}
        T_Gray {Write-Host $Str[1] -NoNewLine  -Ba Gray;break}
        T_Green {Write-Host $Str[1] -NoNewLine  -Ba Green;break}
        T_Magenta {Write-Host $Str[1] -NoNewLine  -Ba Magenta;break}
        T_Red {Write-Host $Str[1] -NoNewLine  -Ba Red;break}
        T_White {Write-Host $Str[1] -NoNewLine  -Ba White;break}
        T_Yellow {Write-Host $Str[1] -NoNewLine  -Ba Yellow;break}
        T__ {Write-Host $Str[1] -NoNewLine ;break}
    }
}
Write-Host ''
}

Вставляется в файл "C:\Documents and Settings\Имя Пользователя\Мои документы\WindowsPowerShell\Microsoft.PowerShell_profile.ps1"  
Вызывается  

Код:
Write-Color '<T__>Обычный текст<TYellowBlue>Желтый на голубом'

 
Всегда строка начинается у указания цвета
Цвета определяются так
<TЦветТекстаЦветФона>
Названия цветов смотреть в помощи к командлету Write-Host
Если цвет фона и(или) текста специально задавать не нужно то на этом месте ставиться _ (подчеркивание)
 
Важно!
' <TBlackBlack>'-  Первый (нечитаемый) должен быть символом из диапазона 1-31 (коды символа) или другой символ, который заведомо не будет встречаться в тексте

Всего записей: 11354 | Зарегистр. 16-02-2005 | Отправлено: 12:20 02-08-2007 | Исправлено: KapralBel, 13:55 04-08-2007
   

На первую страницук этому сообщениюк последнему сообщению

Компьютерный форум Ru.Board » Операционные системы » Microsoft Windows » PowerShell
KLASS (06-03-2018 00:43): Объединение тем по сценариям: Сценарии Windows


Реклама на форуме Ru.Board.

Powered by Ikonboard "v2.1.7b" © 2000 Ikonboard.com
Modified by Ru.Board
© Ru.Board 2000-2018

BitCoin: 1NGG1chHtUvrtEqjeerQCKDMUi6S6CG4iC

Рейтинг.ru