In Linux / Unix shells there is this syntax where you can execute a command and in this command are other commands which are executed first and then substituted so something like this:
gcc main.c `pkg-config --cflags --libs gtk+-3.0`
Here the pkg-.....
gets executed first and then substituted with its output and then the overall command is executed
Is there some similar functionality in Windows PowerShell (and if possible cmd too as I work with both sometimes)
All that I know is that in PowerShell you can write something like this:
gcc main.c (pkg-config --cflags --libs gtk+-3.0)
But the problem with this is that the output of the secondary command is passed like a single continuous string so something like this "-mms-bitfields ....." and gcc doesn't recognize it as separate commands.