WITtools.psm1

<#
    .NOTES
    --------------------------------------------------------------------------------
     Code generated by: SAPIEN Technologies, Inc., PowerShell Studio 2021 v5.8.191
     Generated on: 2021-09-29 12:27
     Generated by: Björn Willim
     Organization: Witcon AB
    --------------------------------------------------------------------------------
    .DESCRIPTION
        Script generated by PowerShell Studio 2021
#>



#region Invoke-new-witguid_ps1
    <#
    .Synopsis
       Skapar en ny guid med eller utan {}
    .DESCRIPTION
       $Without Switch som tarbort {} om guid
     
    .EXAMPLE
       new-WITguid
    .EXAMPLE
       new-WITguid -without
    #>

    Function New-WITguid
      {
        [CmdletBinding()]
        Param
        (
           [Switch]$Without
    
        )
    
      
      $temp=[guid]::NewGuid().guid
    
      if ($Without -eq $true)
        {
          return "$temp"
        } else {
          return "{$temp}"
        }
      }
#endregion

    # Implement your your modulefunctions in this script.
    
    
    # Export only the functions using PowerShell standard verb-noun naming.
    # Be sure to list each exported functions in the FunctionsToExport field of the module manifest file.
    
    
    $functions = @( Get-ChildItem -Path $PSScriptRoot\Functions\*.ps1 -Recurse -ErrorAction SilentlyContinue )
    Foreach($import in @($functions)) {
        . $import.fullname
        $short = $import.name.Replace('.ps1','')
    
        
    }