Added Try-catch block

There was an unhandled exception in the case of a user not having any
program associated with the *.ps1 file type.