Private/New-Win32appFramework.ps1
<#
.Synopsis Created on: 24/03/2024 Created by: Ben Whitmore Filename: New-Win32appFramework.ps1 .Description Function to create a Win32 app JSON framework .PARAMETER LogId The component (script name) passed as LogID to the 'Write-Log' function. This parameter is built from the line number of the call from the function up the pipeline #> function New-IntuneWinFramework { param( [Parameter(Mandatory = $false, ValuefromPipeline = $false, HelpMessage = 'The component (script name) passed as LogID to the Write-Log function')] [string]$LogId = $($MyInvocation.MyCommand).Name, [Parameter(Mandatory = $true, ValueFromPipeline = $false, Position = 0, HelpMessage = 'Param1')] [string]$Param1 ) begin { Write-Log -Message "Function: New-Win32appFramework was called" -Log "Main.log" } process { } } |