start-OData.psm1
function mount-OData { param( [parameter( Mandatory=$true, valueFromPipelineByPropertyName=$true )] [string] [alias( 'drivename' )] $name, [parameter( Mandatory=$true, valueFromPipelineByPropertyName=$true )] [string] $uri ) process { new-psdrive -psprovider odata -root $uri -name $name -scope global; } } |