Custom functions can be defined and loaded in every new session. To check where to save custom functions run:
if (!(Test-Path -Path $PROFILE )) { 
    [void](New-Item -Type File -Path $PROFILE -Force)
}
$PROFILE
If file does not exists it will be created.
Please note that this requires execution policy for powershell scripts.