I’ve come to realize that the batch header method I’ve been using for Powershell scripts isn’t as fool proof as I had hoped. When I sent the Santa Claus script to my mom she wasn’t able to run the batch file, it kept giving an error that a type declaration was undefined. I still haven’t quite figured that one out, but I did try compiling the script using PS2EXE and it ran on her computer without issue.
In light of that, I’m making a quick update here. I’ve changed the script a slight bit, and I’m providing a compiled exe as well.
Zip file contents:
- Santa.ps1
- Santa.ico
- Santa.exe
- Compile-Santa.ps1