From 58a8903a70c5421317bdac60ad4b2fac61975a2f Mon Sep 17 00:00:00 2001 From: Jeff Hicks Date: Fri, 15 Dec 2017 18:07:28 -0500 Subject: [PATCH] Update Samples README --- samples/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/samples/README.md b/samples/README.md index 3f99f9c..2aab513 100644 --- a/samples/README.md +++ b/samples/README.md @@ -1,3 +1,7 @@ # Samples -These files are intended to be used with [Import-PSTypeExtension](../docs/Import-PSTypeExtension.md). Save the file locally and run the import command. You must specify the full file name with extension so the function knows how to import the data. Importing *will* overwrite any existing type members with the same name. The new type members will only last for the duration of your PowerShell session. If you always want a set of type extensions, put the Import-PSTypeExtension command into your PowerShell profile script. +These files are intended to be used with [Import-PSTypeExtension](../docs/Import-PSTypeExtension.md). Save the file locally and run the import command. You must specify the full file name with extension so the function knows how to import the data. Importing *will* overwrite any existing type members with the same name. The new type members will only last for the duration of your PowerShell session. If you always want a set of type extensions, put the `Import-PSTypeExtension` command into your PowerShell profile script. + +``` +dir c:\scripts\myextensions\*.json | foreach { $_ |Import-PSTypeExtension} +```