November 2018
Intermediate to advanced
566 pages
17h 15m
English
This recipe is not dependent on any of the recipes we have already seen. We will create the function from scratch. What we are going to create is a wrapper function. The assumption here is that we already have the two functions, Send-TextMessage and New-VoiceCall. Follow these steps to get started:
function New-PersonalMessage { [CmdletBinding(DefaultParameterSetName='Audio')] param ( # The phone number [Parameter(Mandatory=$true, Position=0, ParameterSetName='Audio')] [Parameter(Mandatory=$true, Position=0, ParameterSetName='Text')] [string] $PhoneNumber, # The path to the WAV file [Parameter(Mandatory=$true, Position=1, ParameterSetName='Audio')] ...Read now
Unlock full access