one thing the file document does is that it actually contains all scripts and commands previously setup like the Freeze coins and even the password to that wallet.
Just a small correction. While it’s true that Electrum keeps record of the coins (utxo) and addresses you choose to freeze by storing them into the wallet file, it does not store the password in it.
There is no need for that. When you try to open a protected wallet file, Electrum will use whatever password you provide and if it successfully decrypts the file then that password is the correct one.