Add try/catch block around powershell scripts

Fixes "Could not load file or assembly 'Microsoft.PowerShell.Commands.Utility' or one of its dependencies." exception when running scripts on Win Server 2008 R2 SP1 x64