In the method shown here, I would like to use multiple PowerShell cmdlets. How can I do that? Like in a PowerShell window, I do a Import Module and then run a command Start-Db. How can I do the same in this method? I am able to run Import-module command successfully, but how can I add another command?
[Fact]
public void TestGetRecordings()
{
PowerShell ps = PowerShell.Create();
ps.AddCommand( "Import-Module" ).AddArgument( "C:\\ProgramFiles\\Azure Cosmos DB Emulator\\PSModules\\Microsoft.Azure.CosmosDB.Emulator" );
ps.Invoke();
ps.Commands.Clear();
}