A. Sort of. That is, you can write something called an advanced function that duplicates much of the behavior of a cmdlet and is written entirely in script. In PowerShell, run
to see a list of related help topics. You can also see my blog post "Advanced Functions Part 1: Cmdlets From Scripts" and "Advanced Functions Part 2: ShouldProcess() in Your Script Cmdlets" for more information.
Do you have a Windows PowerShell question? Why not submit it to Don? Post your question at www.windowsitpro.com/FAQs/FAQSubmittalForm.aspx and you might see your answer online! Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.