Script-like approach:
# Set password
$Password = 'Passw0rd'
# This is multidimensional array, i.e. an array that contains other arrays
# Each of those sub-arrays contains commandline parameters for schtasks.exe
$Commands = @(
@('/tn', 'Task1', '/sd', '2015-01-01', '/ed', '2015-02-02', '/rp', $Password),
@('/tn', 'Task2', '/sd', '2015-04-04', '/ed', '2015-05-05', '/rp', $Password)
)
# Iterate sub-arrays, and run schtasks.exe with commandline arguments from each
$Commands | ForEach-Object {& 'schtasks.exe' $_}
One-liner:
@('/tn', 'Task1', '/sd', '2015-01-01', '/ed', '2015-02-02', '/rp'), @('/tn', 'Task2', '/sd', '2015-04-04', '/ed', '2015-05-05', '/rp') | ForEach-Object {& 'schtasks.exe' ($_ + 'Passw0rd')}