Now published and available from PowerShellGallery.com! The ProfilePal PowerShell Module contains functions that help create and edit PowerShell profiles, as well as some other functions which can easily be re-used across PowerShell profile scripts
The Edit-Profile function relies on the Get-PSEdit, Assert-PSEdit, and Open-PSEdit functions which are provided by the Edit-Module module. These components should be merged into this module; via ModuleList ("packaged with this module").
It appears that the New-Profile function fails to create lower level directories, in order to place a new profile script file in the designated directory.
Example:
[ADMIN] PS .> New-Profile -ProfileName CurrentUserAllHosts
new-item : Could not find a part of the path 'C:\Users\bryan\Documents\WindowsPowerShell\profile.ps1'.
At C:\Program Files\WindowsPowerShell\Modules\ProfilePal\1.0.0\ProfilePal.psm1:421 char:28
Currently, ProfilePal can edit any of the four type of Console host profiles when invoked from console, and it can edit any ISE profile if/when invoked from ISE. Currently there is now way to open/edit an ISE profile script from Console, or to edit a Console profile script, from the functions in this module, in ISE.
In preliminary testing, cloning this repository to a new laptop / Github for windows, resulted in mangled file content, which prevented PowerShell from interpreting the manifest and importing the module