In a custom script SC open-smconnection succeeds, but further cmdlets fail
Applies to
SnapCenter Server PowerShell cmdlets
Issue
In a custom script SC open-smconnection succeeds, but further cmdlets fail with error:
SnapCenter session is not set. Use Open-SmConnection command to establish the session to use commands integrated with SnapCenter.