Hi @jansi rani krishnan ,
here we go:
Import-Module SMLets
$maID = "MA2114"
$MAclass = Get-SCSMclass -name System.Workitem.Activity.ManualActivity$
$relWIcontainsActivity = Get-SCSMRelationshipClass -Name System.WorkItemContainsActivity
$MAObj=get-scsmobject -class $MAclass -filter "Id -eq $maID"
$relatedIR = Get-SCSMRelationshipObject -ByTarget $MAObj
$relatedIRobj = Get-SCSMObject -Id ($relatedIR.SourceObject.Id)
$relatedIRobj
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten