Display scripts in Windows PowerShell's search path
Get-Command -CommandType Script
$first=$args[0]
$second=$args[1]
param([Int32]$second,[string]$first)
PowerShell .\myScript.ps1
@echo off
SET SCRIPT_PATH=%~dp0
powershell -Command "& {%SCRIPT_PATH%myScript.ps1}"
. c:\scripts.sample.ps1
c:\scripts.sample.ps1
& c:\scripts.sample.ps1