Powershell Return Error From Application