I created a custom powershell cmdlet that i have registered in powershell. Of course everytime i close my specific powershell instance i have to execute the following to have access to the command again:
add-pssnapin MyCustomSnapIn
I've tried to google for the answer and the only thing i'm finding is to do the following:
export-console MyCustomCmdletPowerShell
But nothing i found tell you to reimport this into powershell or how to automatically reimport it into powershell (which i prefer). Apparently it doesn't happen automatically.