We run powershell scripts through web interface to manage operational activity. Each time we run the below powershell script it loads a new session, downloads all the cmdlets which is taking time. Even for creating a new mailbox we had to wait for the session to be loaded each time.
Out application has provisioned to share runspace and maintain powershell session consitently without creating session.
Could you please help me in creating a powershell session module psm1 file so that we will it while our users access the website for the first time. In the script we will call this module only if session -eq NULL.