i currently writting a script could save and export the variable ,you can pass a variable into the parameter and save the $variable for the next time i can export it in the current session
$new = 123
note.ps1 -variable $new
get-note.ps1 -name new
but i having trouble passing the name of the variable into the parameter