Error handling and information

Hi guys

I was wondering if its possible to remove the popup that accours when something in the script fails, and only display the balloontip notification?

Thanks

Remove/Comment Out Show-DialogBox -Text $mainErrorMessage -Icon ‘Stop’ in Deploy-Application.ps1