Powershell passes data not instructions and a lot of those complaints sound like trying to write another language in Powershell.
I've shoved json from node through Powershell into the clipboard and back to filter with select-object and out.
the situation making you invoke bat at all is what MS ruined and that's not Powershell fault.