# Set up a Tridion Core Service client for the Content Manager server cms.server.com.
# The 2013-SP1 label is for the CM server version, other valid entries are 2011-SP1 and 2013.
Import-Module Tridion-CoreService
Set-TridionCoreServiceSettings cms.server.com 2013-SP1
$client = Get-TridionCoreServiceClient
# Set a publish instruction with resolve instruction and render instruction. These are all standard
# instructions, nothing special here but you can use this to create a special publinshing action.
$publishIntructionData = New-Object Tridion.ContentManager.CoreService.Client.PublishInstructionData
$publishIntructionData.RenderInstruction = New-Object Tridion.ContentManager.CoreService.Client.RenderInstructionData
$publishIntructionData.ResolveInstruction = New-Object Tridion.ContentManager.CoreService.Client.ResolveInstructionData
# Set readOptions, again very standard.
$readOptions = New-Object Tridion.ContentManager.CoreService.Client.ReadOptions
# Publish the page tcm:69-6164-64 to target tcm:0-1-65537 with publish priority normal.
$client.Publish("tcm:69-6164-64", $publishIntructionData, "tcm:0-1-65537",
[Tridion.ContentManager.CoreService.Client.PublishPriority]::Normal, $readOptions)