A PowerShell module containing various functions that make my life easier. I created the module using PowerShell Studio by SAPIEN Technologies, Inc. and now maintain it using Visual Studio Code with a number of helpful extensions and snippets.
NOTE: The following sections do not cover every single function within the module, instead it covers ones I felt should be highlighted for whatever reason. I try to explain the reasoning (to an extent) within the section itself.
Configuration/Environment Variable Functions
There are a few functions that are for handling environment variables for easier manipulation of the machine/user level path variables. Instead of having to open the GUI or executing one hell of a "one-liner", you can use these functions to help out:
- Lets you set an environment variable at the User level.
- Lets you set an environment variable at the Machine level.
- Lets you get a user environment variable.
- This one isn't really needed, as you can just use $env:VAR_NAME_HERE, I'm not too sure why I added it.
- Same goes as the
- Same goes as the
- Returns true or false, does the current process have Administrator rights?
- Originally started as an easy way for me to avoid errors within the
Set-MachineVariablefunction, but I realized it had broader uses so I've exposed it
The Get-MortyPictures.ps1 contains functions for retrieving the latest images available on the PocketMortys website. These are primarily used as my avatars, since there's so many I'm able to change frequently while maintaining a universal identity. The functions are used to:
- Get the front images available for each Morty in the game.
- Get the back images available for each Morty in the game.
- Get the sprites of each Morty in the game.
- Perform all of the above actions in sequence.
In order to use the NodeJS functions, they all use the standard ssh.exe available when you install git in C:\Program Files\Git\usr\bin. If you haven't installed git then at least ensure ssh.exe is added to your system or user PATH.