You can use these commands in bitcoind console.
Example: bitcoin-cli dumpprivkey "myaddress"
If you want to use the commands from your BTCpay Server, do:
sudo su -
cd btcpayserver-docker
bitcoin-cli.sh "command"
Example: bitcoin-cli.sh dumpprivkey "myaddress"