Aliases not working in cmd run from Diagnostics.Process

I’m trying to create a build pipeline which uploads symbols to firebase after building.
I’m running cmd /k and the command but for some reason in the terminal it won’t recognize any aliases, including firebase and java.
When I try to run them manually in a terminal I opened, it works. If I try to do it in the terminal unity opens, it’s not being recognized.
Anyone knows how to fix this?

Please post a code sample (obfuscated if need be).

Additionally, does it work in the post build step if you use the non-aliased versions?