PInvokeStackImbalance podczas używania „statycznego extern int system (string str)”

Usiłuję użyć systemu (ciąg str) polecenia do dos-Operacje w C #.

namespace XYZ
{
    internal class Program
    {
        [DllImport("msvcrt.dll")]
        static extern int system(string str);

        static void Main(string[] args)
        {
             string Command = Console.ReadLine();
             system(Command); 
             /* Excutes command, then "PInvokeStackImbalance". */
        }
    }
}

Wiem, używającstatic extern int system(string str) jest złym rozwiązaniem, ale próbowałem innych rozwiązań, które nie działały.

questionAnswers(2)

yourAnswerToTheQuestion