If you you can single command in Linux, what prevented you to do the same on Macos?
brew install <the_commandline_tool> and you should have been able to run the command in macos too.
It's more likely to get it run on WSL than assuming it would just work on a Mac.