(self, runspace, pipeline, exit_code)
MI: 6
        SHOULD shut down the hosting application and close the current
        runspace. The default implementation just sets the rc on the host
        object and doesn't shutdown the runspace.
        https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.host.pshost.setshouldexit

        :param runspace: The runspace the host call relates to
        :param pipeline: The pipeline (if any) that the call relates to
        :param exit_code: The exit code accompanying the exit keyword.
            Typically after exiting a runspace, a host will also terminate
MI: 6
        SHOULD shut down the hosting application and close the current
        runspace. The default implementation just sets the rc on the host
        object and doesn't shutdown the runspace.
        https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.host.pshost.setshouldexit
MI : 6 SHOULD shut down the hosting application and close the current runspace . The default implementation just sets the rc on the host object and doesn t shutdown the runspace . https : // docs . microsoft . com / en - us / dotnet / api / system . management . automation . host . pshost . setshouldexit
def SetShouldExit(self, runspace, pipeline, exit_code):
        """
        MI: 6
        SHOULD shut down the hosting application and close the current
        runspace. The default implementation just sets the rc on the host
        object and doesn't shutdown the runspace.
        https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.host.pshost.setshouldexit

        :param runspace: The runspace the host call relates to
        :param pipeline: The pipeline (if any) that the call relates to
        :param exit_code: The exit code accompanying the exit keyword.
            Typically after exiting a runspace, a host will also terminate
        """
        self.rc = exit_code
def SetShouldExit ( self , runspace , pipeline , exit_code ) : self . rc = exit_code