I am working on an agent procedure that would install the Quest AD Module and then add it as a snapin within PowerShell.  So far the script will install the Quest AD Module but doesn't add the snapin.  The script doesn't error out either.

Any help greatly appreciated.

<ScriptExport><Procedure name="Install Quest AD Module" treePres="3" id="1216005847" folderId="45221241424563119198119232" treeFullPath="myProcedures - scarroll"><Body description=""><Statement description="64-bit version" name="GetURL" continueOnFail="false" osType="Windows"><Parameter xsi:type="StringParameter" name="URL" value="http://www.quest.com/QuestWebPowershellCmdletDwnld64bit"/><Parameter xsi:type="StringParameter" name="ResponseFileName" value="#vAgentConfiguration.agentTempDir#\Quest_Quest-One-ActiveRoles-Management-Shell-for-Active-Directory-x64_160.msi"/><Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True"/></Statement><Statement name="ExecuteFile" continueOnFail="false" osType="Windows"><Parameter xsi:type="StringParameter" name="Path" value="%windir%\System32\msiexec.exe"/><Parameter xsi:type="StringParameter" name="Arguments" value="/quiet /norestart /i #vAgentConfiguration.agentTempDir#\Quest_Quest-One-ActiveRoles-Management-Shell-for-Active-Directory-x64_160.msi"/><Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System"/><Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True"/></Statement><Statement name="DeleteFile" continueOnFail="false" osType="Windows"><Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.agentTempDir#\Quest_Quest-One-ActiveRoles-Management-Shell-for-Active-Directory-x64_160.msi"/></Statement><Statement name="Execute Powershell Command (64-bit, Run As System)" continueOnFail="false" osType="None"><Parameter xsi:type="StringParameter" name="Parameter1" value=""/><Parameter xsi:type="StringParameter" name="Parameter2" value="Add-PSSnapin Quest.ActiveRoles.ADManagement"/><Parameter xsi:type="StringParameter" name="Parameter3" value="False"/></Statement><Statement name="ExecuteShellCommand" continueOnFail="false"><Parameter xsi:type="StringParameter" name="Command" value="powershell.exe -nologo -executionpolicy bypass -noprofile -file "c:\working\AddQuestADModule.ps1""/><Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System"/><Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False"/></Statement></Body></Procedure></ScriptExport>