OK I need a little help with this one.
I have PSSession1 and PSSession2
I have a lot of cmdlets so I enter the PSSessions and run my cmdlets from within the sessions
instead of invoke-commands
in PSession1 I have an array
I need to Exit PSSession1 and Enter-PSSession2 and have the array from PSSession1 available in PSSession2
once I exit PSSession1 I lose the array from PSSession1 and therefore cannot add it to the new session.