Given I have a function def like this in my profile: remove-item alias:dir function dir { get-childitem $args | sort-object MshIsContainer -descending } I run into trouble if I try to do this: dir . -Include "*.cs" -Recurse The function invocation of get-childitem wants to treat each element of args as a path instead of generic input args. Any ideas on how to get around this?