Q. Is there such a thing as a "script cmdlet" in PowerShell?

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.

Don Jones

August 2, 2010

1 Min Read
rows of lavender leading to trees

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

help about_functions_adv*

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.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like