Microsoft's Evan Dodds has a post on why you need to use the tokens $true and $false in PowerShell scripts instead of the strings "true" and "false".
Note: if you're reading this in Firefox, there's something funky with the template -- just scroll to the right and the text area will come into view. I've emailed him to let him know. Fixed!