Since both commands actually just call external apps - why would you want to change it to PowerShell? And because PowerShell is - just like CMD - a Command Line Interface … of course you can run external apps in PowerShell.
So - to answer your question:
Yes.
Regardless of that - When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.