new-item keyword creates a new file in the filesystem. The type of item new item creates depends on where the item is being created. For example, new item can also create registry keys and entries if used in the registry. Type the following command in to create a new file in the current path: ni…
