private void CommandPrompt()
        {
            string Arch = System.Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE");

            int    bufSize  = 8192;
            Stream inStream = Console.OpenStandardInput(bufSize);

            Console.SetIn(new StreamReader(inStream, Console.InputEncoding, false, bufSize));

            Console.CancelKeyPress += new ConsoleCancelEventHandler(this.HandleControlC);

            if (!ConsoleEx.IsInputRedirected || !ConsoleEx.IsOutputRedirected || !ConsoleEx.IsErrorRedirected)
            {
                Console.TreatControlCAsInput = false;
            }

            while (!this.ShouldExit)
            {
                string prompt;
                if (this.myHost.IsRunspacePushed)
                {
                    prompt = string.Format("\n[{0}]: p0wnedShell> ", this.myRunSpace.ConnectionInfo.ComputerName);
                }
                else
                {
                    prompt = string.Format("\np0wnedShell {0}> ", this.myRunSpace.SessionStateProxy.Path.CurrentFileSystemLocation.Path);
                }

                this.myHost.UI.Write(prompt);
                string cmd = Console.ReadLine();
                if (cmd == "exit" || cmd == "quit")
                {
                    return;
                }
                else if (cmd == "cls")
                {
                    if (!ConsoleEx.IsInputRedirected || !ConsoleEx.IsOutputRedirected || !ConsoleEx.IsErrorRedirected)
                    {
                        Console.Clear();
                    }
                }
                else if (cmd == "mimikatz")
                {
                    if (Arch != "AMD64")
                    {
                        Console.ForegroundColor = ConsoleColor.Red;
                        Console.WriteLine("\n[+] Sorry this option only works for p0wnedShellx64\n");
                        Console.ResetColor();
                        Console.WriteLine("Press Enter to Continue...");
                        Console.ReadLine();
                    }
                    else
                    {
                        Execution.MimiShell();
                    }
                }
                else if (cmd == "easysystem")
                {
                    GetSystem.EasySystemPPID();
                }
                else
                {
                    try
                    {
                        this.Execute(cmd);
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine(e.Message);
                    }
                }
            }
        }