Those look like command line options for startup, not things that you pass in via any sort of RPC. I don't know what --from is supposed to be, but --testnet starts bitcoind in testnet mode and --password is probably --rpcpassword. Those two either go in the command line or in the bitcoin.conf file.
I am using electrum wallet, from - address from which the payment will be, password - password of bitcoin wallet.