# encoding: ascii
# api: powershell
# title: VerifyCategoryRule.ps1
# description: From Windows PowerShell Cookbook (O’Reilly) by Lee Holmes
# version: 0.1
# author: SddrCErrR
# license: CC0
# x-poshcode-id: 2698
# x-archived: 2016-03-19T00:34:53
# x-published: 2012-05-27T11:48:00
#
#
## From Windows PowerShell Cookbook (O'Reilly)
## by Lee Holmes (http://www.leeholmes.com/guide)

Set-StrictMode -Version Latest

if($message.Body -match "book")
{
    [Console]::WriteLine("This is a message about the book.")
}
else
{
    [Console]::WriteLine("This is an unknown message.")
}
