where: Where-Object in PowerShell
Get-Command/gcm: You have to use (gcm COMMAND).path to get the path string, which is too verbose
Ubuntu package: debianutils (https://salsa.debian.org/debian/debianutils) LICENSE
RHEL package: which (https://savannah.gnu.org/projects/which/)
GNUWin32: https://gnuwin32.sourceforge.net/packages/which.htm
Unfortunately all of them are licensed under GPL. No MIT alternatives, even in https://github.com/uutils/.
where:Where-Objectin PowerShellGet-Command/gcm: You have to use(gcm COMMAND).pathto get the path string, which is too verboseUbuntu package: debianutils (https://salsa.debian.org/debian/debianutils) LICENSE
RHEL package: which (https://savannah.gnu.org/projects/which/)
GNUWin32: https://gnuwin32.sourceforge.net/packages/which.htm
Unfortunately all of them are licensed under GPL. No MIT alternatives, even in https://github.com/uutils/.