| 
               | 
            New-DtTaskParameters | 
Creates a parameter set to be used with the Invoke-DtQueueTask cmdlet.
New-DtTaskParameters [-ScriptPath] <String> [-Arguments] <String> [<CommonParameters>]
| 
                   Required?  | 
                
                   true  | 
              
| 
                   Position?  | 
                
                   1  | 
              
| 
                   Accept Pipeline Input?  | 
                
                   false  | 
              
| 
                   Accept Wildcard Characters?  | 
                
                   false  | 
              
| 
                   Required?  | 
                
                   false  | 
              
| 
                   Position?  | 
                
                   2  | 
              
| 
                   Accept Pipeline Input?  | 
                
                   false  | 
              
| 
                   Accept Wildcard Characters?  | 
                
                   false  | 
              
| 
                   This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.  | 
              
The script called ScriptName, located in C:\PathDir, along with two arguments, is stored in the variable DtScript.
$DtScript = New-DtTaskParameters -ScriptPath "C:\PathDir\ScriptName" -Arguments "arg1 arg2"
The script to launch PowerShell and run the script called Script.ps1, located in C:\PathDir, along with two arguments and the ExecutionPolicy parameter, is stored in the variable DtPsScript.
$DtPsScript = New-DtTaskParameters -ScriptPath "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Arguments "-File ""C:\PathDir\Script.ps1"" ""-Arg1 argument1_info -Arg2 argument2_info"" -ExecutionPolicy RemoteSigned"