Functions/New-IATaskScheduleObject.ps1
Function New-IATaskScheduleObject{ Param( [Parameter(Mandatory = $true)] [Int]$Interval ) $IATaskScheduleObject = New-Object -TypeName PSObject $IATaskScheduleObject | Add-Member -MemberType NoteProperty -Name 'Interval' -Value $Interval $IATaskScheduleObject | Add-Member -MemberType NoteProperty -Name 'Enabled' -Value $True $IATaskScheduleObject | Add-Member -MemberType NoteProperty -Name 'Type' -Value 'Interval' return $IATaskScheduleObject } |