# Powershell 给脚本传递参数
# $args返回所有的参数
# Powershell 增强脚本的可读性
# 不像其它脚本语言,Powershell中的函数必须先定义后使用。
# .\myscript.ps1 10
# 将脚本分为工作脚本和类库
# .\myscript.ps1 10
# 脚本在执行时,先加载类库中的函数。加载函数类库和执行脚本类似,只需要在前面增加一个句号,中间有空格。
# 类库脚本集中存放
# 在开始使用类库脚本工作之前,最好先制定出一个存储脚本类库的策略。
# 低速顺序模式
#Powershell 创建管道脚本
# cd C:\Users\ma.xueying\Desktop\仕事\cloud-chart\powershell練習
# ls $env:windir | .\pipeline.ps1
# 高速流模式
# ls | .\pipe.ps1
# Powershell自动执行脚本之profile