Just a little test script.
Random numbers and File object test....
Goes Nowhere Does Nothing
$random = get-random -maximum 20
echo $random
if ($random -like "?8")
{
echo "bang"
}
if ($random -eq 2)
{
echo "2 ME"
}
$WinUpdLog = "C:\Windows\WindowsUpdate.log"
$values = Get-ItemProperty $WinUpdLog
if ($values.Length -le 1500000)
{
echo "Low"
}
else
{echo "High"}