Also filter out .ps1 files
Add @external_resource attribute, closes #2455