Gamgee.psm1
<#
.NOTES -------------------------------------------------------------------------------- Code generated by: SAPIEN Technologies, Inc., PowerShell Studio 2018 v5.5.152 Generated on: 06/15/18 23:55 Generated by: Alcha Organization: HassleFree Solutions, LLC -------------------------------------------------------------------------------- .DESCRIPTION Script generated by PowerShell Studio 2018 #> <# =========================================================================== Created on: 11/19/2016 @ 10:07 AM Created by: Alcha Organization: HassleFree Solutions, LLC Filename: Gamgee.psm1 ------------------------------------------------------------------------- Module Name: Gamgee =========================================================================== #> <#. "$(Get-ScriptDirectory)\Misc\Get-MortyPictures.ps1" . "$(Get-ScriptDirectory)\Misc\Get-ReversedString.ps1" $DirectoryFiles = @(Get-ChildItem -Path (Get-ScriptDirectory) -Filter '*.ps1' -Recurse -ErrorAction SilentlyContinue) foreach ($File in $Directory) { if ($File.Name -notcontains 'Test') { try { . $File.FullName } catch { Write-Error -Message "Failed to import function $($File.FullName): $_" } } else { Write-Host 'FileName contains test...' Write-Host $File } } #> function Get-ScriptDirectory { $Invocation = (Get-Variable MyInvocation -Scope 1).Value Split-Path $Invocation.MyCommand.Path } |