When Mozilla updated Firefox with the AI chatbot feature the first thing I did was look in settings in how to remove it. When that failed I just googled it, which pointed me to about:config and which keys to look for.
Much easier to figure out with your intuition what `browser.ml.chat.enabled` could possibly mean than running pwsh script.
Knowing where to look and which settings are relevant, for yourself, is a crazy ask of even very computer savvy users.