Windows does not have ldd it seems, but if you have Visual Studio installed,
(in my case 2022) then you can do:
dumpbin /dependents filename.dll/exe
And of course it's not on the PATH, but it works inside VS' terminal.
The macOS version I regularly forget is:
otool -L /path/to/binary
Maybe now.