I am having issues with bitcoin-cli

when I type bitcoin-cli -regtest generate 101 in the powershell it gives me this error:

PS C:\Program Files\Bitcoin\daemon> ./bitcoin-cli -regtest setgenerate 1
error code: -32601
error message:

I am running bitcoind in regtest too ,this is the last message that i got fom bitcoind:

Adding fixed seed nodes as DNS doesn’t seem to be available.

please help