Used VSCode's Format Document and added a few full stops to console output, so there are several cosmetic changes.
Simplified code for copying source files to destination, by always removing \ at the end of the string (does not cause error if \ is not present).
Changed to filtering left instead of using Where-Object when searching for applications. In environments with high number of applications, this speeds up the search.
Used VSCode's Format Document and added a few full stops to console output, so there are several cosmetic changes. Simplified code for copying source files to destination, by always removing \ at the end of the string (does not cause error if \ is not present). Changed to filtering left instead of using Where-Object when searching for applications. In environments with high number of applications, this speeds up the search.