Q. Is there such a thing as a "script cmdlet" in PowerShell?
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? Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.