Bug fixes for PowerShell bug bash.