//**********************************************************************************************************
        //  Device Drivers
        //**********************************************************************************************************
        private Boolean ExecutePSShellGetDeviceCmdlet()
        {
            //Get - Device | Sort - Object - Property Name | ft Name, DriverVersion, DriverProvider, IsPresent, HasProblem - AutoSize
            Collection <PSObject> psObjects = null;

            using (Pipeline psPipeline = psRunspace.CreatePipeline())
            {
                // Define the command to be executed in this pipeline
                Command command1 = new Command("Get-Device");
                // Add this command to the pipeline
                psPipeline.Commands.Add(command1);
                Command command2 = new Command("Sort-Object");
                command2.Parameters.Add("Property", "Name");
                psPipeline.Commands.Add(command2);
                Command     command3    = new Command("Where-Object");
                ScriptBlock scriptBlock = ScriptBlock.Create("$_.DriverProvider -like '*Excalibur*'");
                command3.Parameters.Add("FilterScript", scriptBlock);
                psPipeline.Commands.Add(command3);
                //command.Parameters.Add("Sort-Object -Property Name | ft Name, DriverVersion, DriverProvider, IsPresent, HasProblem -AutoSize");
                try
                {
                    // Process the results
                    psObjects = psPipeline.Invoke();
                    foreach (var psObject in psObjects)
                    {
                        ;//WriteObject(psObject);
                        _deviceMagaerDataReport                = new DeviceManagerDataModel();
                        _deviceMagaerDataReport.Name           = psObject.Properties["Name"].Value.ToString();
                        _deviceMagaerDataReport.Manufacturer   = psObject.Properties["Manufacturer"].Value.ToString();
                        _deviceMagaerDataReport.HardwareIds    = psObject.Properties["HardwareIds"].Value.ToString();
                        _deviceMagaerDataReport.DriverVersion  = psObject.Properties["DriverVersion"].Value.ToString();
                        _deviceMagaerDataReport.DriverProvider = psObject.Properties["DriverProvider"].Value.ToString();
                        _deviceMagaerDataReport.LocationInfo   = psObject.Properties["LocationInfo"].Value.ToString();
                        _deviceMagaerDataReport.IsPresent      = psObject.Properties["IsPresent"].Value.ToString();
                        _deviceMagaerDataReport.IsEnabled      = psObject.Properties["IsEnabled"].Value.ToString();
                        _deviceMagaerDataReport.HasProblem     = psObject.Properties["HasProblem"].Value.ToString();

                        FullDataReport.DeviceDriverDataList.Add(_deviceMagaerDataReport);
                    }
                }
                catch (CmdletInvocationException exception)
                {
                    // Process the exception here
                }
            }

            return(true);
        }
        private Boolean ExecutePSShellGetModulesScript()
        {
            Collection <PSObject> psObjects = null;

            //File.GetAttributes("ExcListDlls.ps1");
            //string strCmdText = Path.Combine(Directory.GetCurrentDirectory(), "Start.ps1");

            using (Pipeline psPipeline = psRunspace.CreatePipeline())
            {
                psPipeline.Commands.AddScript(LoadScript(@"C:\Excalibur\ExcListDlls.ps1"));

                Command commandGetDll = new Command("Get-Dll");
                commandGetDll.Parameters.Add("ModuleName", "frontdesk.dll");
                psPipeline.Commands.Add(commandGetDll);

                try
                {
                    // Process the results
                    psObjects = psPipeline.Invoke();
                    foreach (var psObject in psObjects)
                    {
                        ;//WriteObject(psObject);
                        _deviceMagaerDataReport                = new DeviceManagerDataModel();
                        _deviceMagaerDataReport.Name           = psObject.Properties["Name"].Value.ToString();
                        _deviceMagaerDataReport.Manufacturer   = psObject.Properties["Manufacturer"].Value.ToString();
                        _deviceMagaerDataReport.HardwareIds    = psObject.Properties["HardwareIds"].Value.ToString();
                        _deviceMagaerDataReport.DriverVersion  = psObject.Properties["DriverVersion"].Value.ToString();
                        _deviceMagaerDataReport.DriverProvider = psObject.Properties["DriverProvider"].Value.ToString();
                        _deviceMagaerDataReport.LocationInfo   = psObject.Properties["LocationInfo"].Value.ToString();
                        _deviceMagaerDataReport.IsPresent      = psObject.Properties["IsPresent"].Value.ToString();
                        _deviceMagaerDataReport.IsEnabled      = psObject.Properties["IsEnabled"].Value.ToString();
                        _deviceMagaerDataReport.HasProblem     = psObject.Properties["HasProblem"].Value.ToString();

                        FullDataReport.DeviceDriverDataList.Add(_deviceMagaerDataReport);
                    }
                }
                catch (CmdletInvocationException exception)
                {
                    // Process the exception here
                }
            }

            return(true);
        }