The exclamation mark at the beginning of the lines indicates input to the shell (in this case Powershell). This should not be included in your command line input.

Try typing the following instead:

    pip install transformers
    pip install langchain
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence