# powershell -ExecutionPolicy ByPass -File [파워쉘파일]
아래 내용 test.ps1로 저장 $token = "#########################" $chatId = "################" $message = $args Invoke-RestMethod -Uri "https://api.telegram.org/bot$token/sendMessage?text=$message&chat_id=$chatId" 실행 powershell -executionpolicy bypass test.ps1 테스트~~~
https://blogs.vmware.com/PowerCLI/2017/05/powercli-6-5-1-install-walkthrough.html
# 변경할 날짜지정 $d = Get-Date "02/09/2013 4:59 PM" # 변경할 파일 대상 지정 $f = Get-Item "C:\test\test.txt" # 변경할 파일에 변경할 날짜 적용 $f.LastWriteTime = $d 출처 : http://stackoverflow.com/questions/21630424/modifying-lastwritetime-directory-in-powershell
ps="powershell.exe -nologo -command " & Chr(34) & "[xxxx.ps1]" & Chr(34) set shell=createobject("WScript.Shell") shell.Run ps,0,true 출처 : http://kernel64.tistory.com/567