Refactor common args used for building PowerShell commands.