$a=get-date $b="restart" "On {0} ,ERP has {1}" -f $a,$b
结果:
On 2014/12/19 16:33:51 ,ERP has restart
格式化输出
原文:http://www.cnblogs.com/dreamer-fish/p/4174222.html