Is it possible to load a module and then execute a cmdlet at the beginning of a powershell command?
I want to import the following module:
import-module "C:\Program Files\DataCore\SANsymphony\Register-DcsCmdlets.ps1"
and then run the cmdlet below
Connect-DcsServer
However whenever I put them into my Powershell script it just imports the module but does not execute the cmdlet command.
Any suggestions?