我怎样才能在下面构造这个调用:
C:> ExecuteFoo "2012-10-21 00:00:00" "2012-10-21 00:00:00"
从下面的 PowerShell 脚本:
param(
[string] $ReportStart = (get-date -format "yyyy-MM-dd 00:00;00"),
[string] $ReportEnd = (get-date -format "yyyy-MM-dd 23:59:59")
)
# ............ Some stuff here
$Process = [diagnostics.process]::Start("$cmdline", "$ReportStart, $ReportEnd")