It can be very useful to build aliases quickly for windows hosts. This can be done effectively with a CMD/BAT file
This executes a command and if there are parameters passed to the command then they are added to the command
C:\Users\msn\AppData\Local\Microsoft\WindowsApps>more azrg.bat
@echo off
set "command=az resource list --query "[].{name:name, type:type, resourceGroup:resourceGroup, location:location}""
set "args=%*"
if defined args (
set "command=%command% %args%"
)
%command%
Theses CMD/BAT files need to be within the search path.
Typically I place them in C:\Users\%USERNAME%\AppData\Local\Microsoft\WindowsApps